Created
March 1, 2017 18:41
-
-
Save bgamari/0a3b11f62f95d3c4789ac0c144b07bae to your computer and use it in GitHub Desktop.
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
#!/bin/bash -e | |
# e.g. git rev-set A..C X master gives you the union of all of these commits/ranges | |
for i in $@; do | |
if echo "$i" | grep '\.\.' >/dev/null; then | |
git rev-list $i | |
else | |
git rev-parse $i | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment