Created
December 23, 2015 13:59
-
-
Save garex/864d49fa0731a4514530 to your computer and use it in GitHub Desktop.
Helps in interactive rebase
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
#!/usr/bin/env bash | |
START_COMMIT=${1:-develop} | |
END_COMMIT=${2:-HEAD} | |
range=$START_COMMIT..$END_COMMIT | |
echo 'Commits count: ' $(git log --oneline $range | wc -l) | |
GIT_PAGER=cat git log --reverse --no-merges --format='format:[%h] %s' --name-status $range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install place it at /usr/local/bin/git-log-commit-file and chmod +x