Skip to content

Instantly share code, notes, and snippets.

@garex
Created December 23, 2015 13:59
Show Gist options
  • Save garex/864d49fa0731a4514530 to your computer and use it in GitHub Desktop.
Save garex/864d49fa0731a4514530 to your computer and use it in GitHub Desktop.
Helps in interactive rebase
#!/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
@garex
Copy link
Author

garex commented Feb 17, 2016

To install place it at /usr/local/bin/git-log-commit-file and chmod +x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment