Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # Didn't find a good name for this yet :D
  2. function git-foobar {
  3. COMMITS=$(git diff-tree --no-commit-id --name-only -r --diff-filter=A $1 | \
  4. xargs git log --pretty="%H" -- | \
  5. uniq | \
  6. grep --invert-match $(git rev-parse $1))
  7.  
  8. if (( $(echo -n "$COMMITS" | wc -l) > 0 )); then
  9. echo "$COMMITS" | xargs git show --stat
  10. fi
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement