Skip to content

Instantly share code, notes, and snippets.

@justanotherdot
Created January 19, 2021 03:43
Show Gist options
  • Save justanotherdot/cf4c2e903921c9067a0b9d0c508c4391 to your computer and use it in GitHub Desktop.
Save justanotherdot/cf4c2e903921c9067a0b9d0c508c4391 to your computer and use it in GitHub Desktop.
Compare main branch to topic/foo and who touched files last, and when they were touched.
for f in $(git diff --name-only topic/foo) ; do git --no-pager log -z --pretty=format:"$f was last touched by %cn %cr%n" $f | head -1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment