Git blame -- prior commits? -


i love git blame command, useful tracking down people don't own writing code. :-)

however, possible see edited specific line before commit reported git blame, e.g. history of commits given line?

for example, run following (on superb uncrustify project):

$ git blame -l10,+1 src/options.cpp ^fe25b6d (ben gardner 2009-10-17 13:13:55 -0500 10) #include "prototypes.h" 

how can find out edited line before commit fe25b6d? , edited before that commit? sure possible, git-fu weak.

git blame -l10,+1 fe25b6d^ -- src/options.cpp 

you can specify revision git blame starting (instead of default of head); fe25b6d^ parent of fe25b6d.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -