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
- Does lighting weapons on fire do anything?
- Questions around patio porch repair - Central Florida
- Testing binary data for statistical independence
- Unexpected "would" that doesn't feel right in this context
- Difference between VOR approach (with DME required) and VOR DME approach?
- Did the Good Thief address Jesus by name in Lk 23:42?
- Short film about man that saw gore and blood as cake/candy/good instead of disturbing
- Binary encoding with short bit sequences
- Generating 40kHz, 60kHz, and 77.5kHz square waves with a single MCU's timers
- Is it a problem if I don’t have a recommendation letter from my thesis advisor due to retirement?
- How do we see the whole observable universe?
- Can you prove equality of two expressions by setting them equal in an equation?
- Is it unethical to mention my PhD Thesis in a double blinded review?
- C++ implicit conversion from size_t to double fails
- Can there be a continuous function with infinite derivative everywhere?
- Why does a battery's open-circuit voltage decrease as it discharges?
- What does sectarian mean/imply in this passage?
- Crossing a square pond with beams
- Do features that increase Speed apply retroactively when gaining a new special Speed?
- What does ־וֹן mean?
- Why did I freeze to death even though I had cold resistance?
- “Why don’t these images look like 4:3 even though the book says 4:3?”
- Can a chocolate bar contain alcohol naturally?
- Why doesn't leaked confidential information often result in prosecutions for the leaker(s)?
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.