Re: Finding file revisions
On Wednesday 27 April 2005 18:19, Linus Torvalds wrote:
Show 14 quoted lines
> 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