Given a commit that has been cherry picked, what is the git command that can show who performed that git cherry-pick
operation?
Asked
Active
Viewed 135 times
2

Phillip Ngan
- 15,482
- 8
- 63
- 79
-
https://stackoverflow.com/search?q=%5Bgit%5D+who+did+cherry-pick – phd Nov 02 '18 at 22:22
1 Answers
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