Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Didn't find a good name for this yet :D
- function git-foobar {
- COMMITS=$(git diff-tree --no-commit-id --name-only -r --diff-filter=A $1 | \
- xargs git log --pretty="%H" -- | \
- uniq | \
- grep --invert-match $(git rev-parse $1))
- if (( $(echo -n "$COMMITS" | wc -l) > 0 )); then
- echo "$COMMITS" | xargs git show --stat
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement