Created
December 28, 2016 18:45
-
-
Save henri-tremblay/9bef56b41f58c18c36a21b0fecca61ee to your computer and use it in GitHub Desktop.
git is-rebased
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
is-rebased = !"f() { if [ \"$(git show-ref -s $1/$2)\" = \"$(git merge-base HEAD $1/$2)\" ]; then echo "Rebased" || exit 0; else echo "Not rebased!" || exit 1; fi; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment