From: Linus Torvalds Date: Fri, 06 May 2005 17:09:17 GMT Subject: Re: How do I... Message-ID: In-Reply-To: <7vsm10cnx3.fsf@assigned-by-dhcp.cox.net> On Fri, 6 May 2005, Junio C Hamano wrote: > > LT> Guys - whoever wrote one of the scripts, can you please send out your > LT> current version to the git list and cc me, and explain why yours is > LT> superior to the other peoples version. Please? > > I think I mentioned and posted an interactive version called > jit-trackdown. It is part of JIT found at [*1*]. You may have > an older version that does not have the command. Actually, I spent some time just now to improve the interface to git-diff-tree, allowing it to take a list of trees to compare from stdin. And if you only give it one entry on stdin, it assumes it is a commit, and lists the tree difference between that and the parent(s). If it's a merge commit, it will ignore it unless you use "-m". So now you can do git-rev-list HEAD --max-count=10 | git-diff-tree --stdin update-cache.c to see which of the last 10 commits changed "update-cache.c". And if you add the "-p" flag, it will show it as a diff too. Damn, I'm good. It was just a few lines of code added to git-diff-tree. Linus