Fakerr / git-recall

An interactive way to peruse your git history from the terminal
MIT License
2.12k stars 47 forks source link

Add option to specify branch name #36

Closed ryanc414 closed 7 years ago

ryanc414 commented 7 years ago

Specify branch name with -b (or --branch) to recall commits made on a different branch to the one that is checked out. So for example if I'm working on master and want to quickly browse commits I've made in a different release branch I can do so without checking out the release branch, avoiding a lengthy re-build when I go back to master.

Works very simply, just pass the branch name through to the git log command as the only positional parameter. Passing empty string gives usual default behaviour of displaying commits from the current checked-out branch.

Fakerr commented 7 years ago

Nice, Thanks :+1: