From: david@lang.hm Date: Fri, 02 Jan 2009 22:13:32 GMT Subject: how to track the history of a line in a file Message-ID: I have a need to setup a repository where I'm storing config files, and I need to be able to search the history of a particular line, not just when the last edit of the line was (which is what I see from git blame) I'm not seeing a obvious way to do this, am I missing something or does it need a non-obvious approach? for example, if I do git blame -L /SUBLEVEL/,+1 -M Makefile on the linux kernel it currently shows 57f8f7b6 (Linus Torvalds 2008-10-23 20:06:52 -0700 3) SUBLEVEL = 28 what I would want it to show would be a list of the commits that have changed this line. It looks like I can write a script to do this git blame -L /SUBLEVEL/,+1 -M Makefile 57f8f7b6^ 6e86841d (Linus Torvalds 2008-07-28 19:40:31 -0700 3) SUBLEVEL = 27 git blame -L /SUBLEVEL/,+1 -M Makefile 6e86841d^ 2ddcca36 (Linus Torvalds 2008-05-03 11:59:44 -0700 3) SUBLEVEL = 26 etc. is there a better way to do this? David Lang