Is it possible to determine whose code (according

2020-08-13 09:41发布

问题:

I have a large cross-cutting commit that I would like to split up according to the authors whose code was affected, both to increase the reviewers' familiarity with the code they're reviewing, and to divide the review burden equitably.

I realize that the blame may be mixed within a given hunk, in which case it would be nice to either collect multiple reviewers or just choose the most "blameworthy" one (breaking ties arbitrarily is fine).

回答1:

Interesting question. I couldn't find any solution simply using git-flags but some quick googling led me to this utility: git-diff-blame. (I did not write the tool)

It displays the actual hunks + the 'blame' line for each line in the hunk.



标签: git