git log -p  foo.c

Also have a look at git blame

git blame foo.c

git blame cannot show deleted lines, but it can be really helpful trying to
see file history.


On Tue, Jan 24, 2017 at 1:47 PM, Michael <keybou...@gmail.com> wrote:

> What command, or gui tool, will let me check one file's diffs over time?
>
> i.e.: Lets say I want to see what happened to one file, only, from commit
> X to the present.
>
> Then, as a GUI tool, being able to look through the list/tree of files,
> and see all the commits (and their locations in the commit tree) and
> patches to that file.
>
> Bonus points if, as recently discussed, I can specify a block of code that
> I want to see the diffs of over time, even if that block of code has moved
> from one file to another.
>
> (Yes, that is the goal here -- seeing how one routine has morphed over two
> developers and a good amount of time.)
>
>
> ---
> Entertaining minecraft videos
> http://YouTube.com/keybounce
>
> --
> 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.
>

-- 
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