From: Linus Torvalds Date: Thu, 28 Apr 2005 21:32:34 GMT Subject: Re: Finding file revisions Message-ID: In-Reply-To: <200504281658.39300.mason@suse.com> On Thu, 28 Apr 2005, Chris Mason wrote: > On Thursday 28 April 2005 15:11, Kay Sievers wrote: > > > > Can you confirm this with the kernel tree? > > file-changes -c 9acf6597c533f3d5c991f730c6a1be296679018e drivers/usb/core/usb.c > > > > lists the commit: > > diff-tree -r 1d66c64c3cee10a465cd3f8bd9191bbeb718f650 c79bea07ec4d3ef087962699fe8b2f6dc5ca7754 > > f0534ee064901d0108eb7b2b1fcb59a98bb53c2b->c231b4bef314284a168fedb6c5f6c47aec5084fc drivers/usb/core/usb.c > > > > cat-file commit c79bea07ec4d3ef087962699fe8b2f6dc5ca7754 > > > > which seems not to have changed the file asked for. > > Hmmm, that does work here: > > coffee:/src/git # diff-tree -r 1d66c64c3cee10a465cd3f8bd9191bbeb718f650 c79bea07ec4d3ef087962699fe8b2f6dc5ca7754 | grep usb.core.usb.c > *100644->100644 blob f0534ee064901d0108eb7b2b1fcb59a98bb53c2b->c231b4bef314284a168fedb6c5f6c47aec5084fc drivers/usb/core/usb.c I think Key is confused by the fact that the commit is a -merge- commit, and the first parent has _not_ changed that file - it got changed through the merge. Ie: cat-file commit c79bea07ec4d3ef087962699fe8b2f6dc5ca7754 gives tree 3fbdc4745cfde60df7d05815b343e4a253020530 parent a9e4820c4c170b3df0d2185f7b4130b0b2daed2c parent 1d66c64c3cee10a465cd3f8bd9191bbeb718f650 author Linus Torvalds 1113921100 -0700 committer Linus Torvalds 1113921100 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6.git/ and if you do a diff against the _first_ parent you don't see anything changing in USB.. Linus