Re: [PATCH] Add git-annotate - a tool for annotating files with the revision and person that created each line in the file.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 8, 2006, 16:05 UTC
- Message-ID
- <Pine.LNX.4.63.0602081702280.19744@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20060208150950.GA29346@ebar091.ebar.dtu.dk>
Hi,
On Wed, 8 Feb 2006, Peter Eriksen wrote:
Show 17 quoted lines
> On Wed, Feb 08, 2006 at 09:52:55AM -0500, Ryan Anderson wrote: > > Signed-off-by: Ryan Anderson <ryan@michonline.com> > > > > --- > > > > I think this version is mostly ready to go. > > > > Junio, the post you pointed me at was very helpful (once I got around to > > listening to it), but the code it links to is missing - if that's a > > better partial implementation than this, can you ressurrect it > > somewhere? I'd be happy to reintegrate it together. > > Does it depends on some ealier patch? I get this: > > git]$ git-annotate diff-delta.c > Undefined subroutine &main::all_lines_claimed called at > /home/peter/bin/git-annotate line 124.
Just add a function like
-- snip --
sub all_lines_claimed {
return ($leftover_lines == 0);
}
-- snap --and you're done.
However, it does not yet do the correct thing: it does not show the root commit. For example, if you do "git annotate git-am.sh" it should show "d1c5f2a4" for the first lines, not "a1451104" as it does.
Ciao, Dscho