Guest User

Untitled

a guest
Aug 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. die () {
  2. echo >&2 "$@"
  3. exit 1
  4. }
  5.  
  6. HOW_FAR=1
  7. [ "$#" -eq 0 ] || HOW_FAR=$1
  8. echo $HOW_FAR | grep -E -q '^[0-9]+$' || die "need to pass a number if you gonna pass"
  9.  
  10. git log -n$HOW_FAR --oneline | cut -f1 -d' ' | xargs -I% git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT % | sort | uniq
Add Comment
Please, Sign In to add comment