git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there any efficient way to track history of a piece of code?
@ 2014-05-08  6:54 Jianyu Zhan
  2014-05-08  7:00 ` Jeff King
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jianyu Zhan @ 2014-05-08  6:54 UTC (permalink / raw)
  To: git; +Cc: gitster

Usually, a trivial change(like coding style fix) may bury a
original change of the code, and thus git blame is of less
help. And to address this situation, I have to do like this:

   git blame -s REF^ <file-in-question> > temp

to dig into the history recursively by hand, to find out
the original change.

Here, REF is commit-id that git blame reports.

git log -L is a good alternative option, but sometimes it seems
too cubersome, as I care only one line of code.

Is there any current solution or suggestion?

Thanks,
Jianyu Zhan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-09  6:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08  6:54 Is there any efficient way to track history of a piece of code? Jianyu Zhan
2014-05-08  7:00 ` Jeff King
2014-05-08  7:32   ` Jianyu Zhan
2014-05-08 18:34     ` Junio C Hamano
2014-05-09  6:56     ` David Lang
2014-05-08  7:06 ` David Kastrup
2014-05-08  7:35 ` Chris Packham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).