I want to show information in diff (or similar tool for git) which line in file was changed by which commit.
1 Answer 1
Have a look at the git blame command: http://git-scm.com/docs/git-blame
Sign up to request clarification or add additional context in comments.
Comments
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related
Hot Network Questions
- Do customizable blank-slate protagonists limit the narrative potential of action RPGs?
- Condensation of water droplets on one side of a bottle!
- Difference between VOR approach (with DME required) and VOR DME approach?
- The Airbus A320 that pitched down due to solar radiation recently. Why did that happen? I thought the computers vote the corrupted one out and ignore?
- Teil vs Unter for Mathematical Structures
- Creating a spiral
- MinMaxStack - tracks minimum and maximum values
- 70-80s novel. Something has driven a Rancher's animals crazy
- Sum of the parts
- Blind Spot Regarding the Correlation Coefficient
- how to define an expandable key-value command?
- How to deserialize the account in rust fronted?
- org-mode use reference and loop over several tables -> error handling
- Find the nearest school to you
- Deeper understanding of Ezekiel 11:3's "...The time is not near to build houses. This city is the pot and we are the flesh.."
- Include endowed chairs/emeritus status in recommender titles for grad apps?
- To pretwist or not between two solids and one stranded?
- Why do my Raspberry Pi 5 SD cards have unwritable partition tables?
- Does Convergence of Arc Length Imply Uniform Convergence?
- Can a magnetic loop antenna be used to communicate through a perfect metal container?
- What damages are recoverable for late delivery of a package?
- When exactly does the game clock start during an American football kickoff?
- Why did I freeze to death even though I had cold resistance?
- A subset of a rectangle that 'blocks' every curve that goes from right to left must connect upper and lower sides
git blame <file>prints information for each line in<file>, including a short SHA of the commit that last changed each line. That's probably what you want to use.