Guest User

Untitled

a guest
Oct 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. logchanged() {
  2. local thiscommit
  3. local prevcommit
  4. (( numcommits < 0 )) || unset numcommits
  5. while read prevcommit; do
  6. if [[ $thiscommit && $prevcommit ]]; then
  7. printf -- '========================================\n'
  8. printf -- '%s\n' "$thiscommit"
  9. printf -- '----------------------------------------\n'
  10. git diff --name-only "$thiscommit" "$prevcommit"
  11. echo
  12. fi
  13. thiscommit="$prevcommit"
  14. done < <(git log --pretty=format:%H)
  15. }
Add Comment
Please, Sign In to add comment