2

Given a commit that has been cherry picked, what is the git command that can show who performed that git cherry-pick operation?

Phillip Ngan
  • 15,482
  • 8
  • 63
  • 79

1 Answers1

6

Anything that prints the log data can print both the author and the committer. The author of a cherry-picked commit defaults to the author of the original commit itself, while the committer is (unless overridden) the person who did the cherry-pick. Hence:

git show --pretty=fuller <hash>

will, for instance do the trick, as will:

git log --no-walk --pretty=fuller <hash>

(git show will produce the diff against the parent(s) as well).

torek
  • 448,244
  • 59
  • 642
  • 775