Last active
October 13, 2015 21:57
-
-
Save guywithnose/4261449 to your computer and use it in GitHub Desktop.
Get file list script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $# == 0 ] | |
then | |
git diff `git merge-base HEAD {defaultRemote}/master` --name-only | |
else | |
if [ $# == 1 ] | |
then | |
git diff `git merge-base HEAD $1/master` --name-only | |
else | |
git diff `git merge-base HEAD $1/$2` --name-only | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you just use git diff --name-only {reference}