Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- logchanged() {
- local thiscommit
- local prevcommit
- (( numcommits < 0 )) || unset numcommits
- while read prevcommit; do
- if [[ $thiscommit && $prevcommit ]]; then
- printf -- '========================================\n'
- printf -- '%s\n' "$thiscommit"
- printf -- '----------------------------------------\n'
- git diff --name-only "$thiscommit" "$prevcommit"
- echo
- fi
- thiscommit="$prevcommit"
- done < <(git log --pretty=format:%H)
- }
Add Comment
Please, Sign In to add comment