Re: git-rev-list feature request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 9 Mar 2006, Junio C Hamano wrote:

> Linus Torvalds <torvalds@xxxxxxxx> writes:
> 
> > So phase 1 already exists and was the hard part. phase 2 is just walking 
> > the graph (that is now all in memory) from "cmit" using the "object->refs" 
> > reverse references that got built up during phase 1.
> 
> Eh,... what reverse references???

Heh. Exercise left to the reader. Right now we do only forward references 
(and rev-list.c actually turns that off, since it has no use for them). 

But doing reverse refs should be easy - in the same place we do the 
forward ones. I'd suggest making "track_object_refs == -1" mean "reverse 
refs".

(I think the only thing that uses forwards refs is fsck. Nobody else wants 
them, or would prefer the reverse kind - since forwards refs you can 
just look up yourself anyway).

		Linus
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]