where_in_git

finds a file, or file-path across your local git branches

Iterates over each of your local git branches (the stuff you see with git branch, not git branch -a) gets the paths of all the files in that branch, and compares it against the string you passed in.

Example:

❯ where_in_git scheduler/feed
-------------------  main
app/workers/scheduler/feed_cleanup_scheduler.rb
spec/workers/scheduler/feed_cleanup_scheduler_spec.rb

Usage

USAGE: where_in_git <portion_of_file_path>

Metadata:

Tags:

  • git