From: Chris Mason Date: Wed, 27 Apr 2005 22:31:47 GMT Subject: Re: Finding file revisions Message-ID: <200504271831.47830.mason@suse.com> In-Reply-To: On Wednesday 27 April 2005 18:19, Linus Torvalds wrote: > On Wed, 27 Apr 2005, Chris Mason wrote: > > So, new prog attached. New usage: > > > > file-changes [-c commit_id] [-s commit_id] file ... > > > > -c is the commit where you want to start searching > > -s is the commit where you want to stop searching > > Your script will do some funky stuff, because you incorrectly think that > the rev-list is sorted linearly. It's not. It's sorted in a rough > chronological order, but you really can't do the "last" vs "cur" thing > that you do, because two commits after each other in the rev-list listing > may well be from two totally different branches, so when you compare one > tree against the other, you're really doing something pretty nonsensical. Aha, didn't realize that one. Thanks, I'll rework things here. -chris