ntg
ntg

Reputation: 14075

Being git blamed for code I only reviewed and merged

We are using git (in Bitbucket), and a colleague sent me a pull request, which I reviewed and merged. When I check blame after that, all the reviewed code is blamed on me, not the colleague that actually wrote it...

Is there a way to blame the person that actually wrote/modified the code for each line, and not the one that just did the git merge? "To blame a person" means using the git blame tool to find out who wrote a piece of code.

Upvotes: 0

Views: 562

Answers (1)

ntg
ntg

Reputation: 14075

Incomplete answer based on the user point of view:

Bitbucket was setting the attributions to whoever does the commit... It has some extra options for the admin (which I am not), button should be there:

i.stack.imgur.com/Adkst.png

One section should be about squash merge. The admin needs to setup this section correctly, so that the person who wrote the code and not the one who did the merging is blamed. Further details are related to torek's comment...

Upvotes: 0

Related Questions