On Tue, Aug 19, 2014 at 3:58 PM, Norike Abe <nor...@gmail.com> wrote:
> Excuse me if the terminology I use is not exactly the one used in Git. I'm
> not very used in this system...
> Imagine you suspect a line of code (or a method) in a file in your project
> has changed but you don't know when; and you want to check if that line has
> ever changed, when this happened, who did the commit(s) and of course see
> the diff(s).

You can use `git blame` to see who last changed a line and when.  If
you are a fugitive user (excellent Vim plugin) then you can use
':Gblame' and jump around in history a bit as well.

> Is there a command to compare all the changes between two given commits a
> file has suffered, in a given set of lines of code?

AFAIK you'll always see all changes to a file.  The command is `git
diff <commit0> <commit1> -- <file name>`.


Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to