Skip to content

Instantly share code, notes, and snippets.

@Sjors
Created September 17, 2019 14:44
Show Gist options
  • Save Sjors/354d6c4751aede3dde49e407271d4391 to your computer and use it in GitHub Desktop.
Save Sjors/354d6c4751aede3dde49e407271d4391 to your computer and use it in GitHub Desktop.
PR review hacks
base=$(git rev-list -n1 --min-parents=2 HEAD)
while IFS= read rev; do
revs+=($rev)
done < <(git rev-list --reverse $base..HEAD)
i=1
for r in "${revs[@]}"; do
git log -n1 --format="- [ ] %H %s ($i/${#revs[@]})" $r
((++i))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment