Re: [PATCH] git-show: grok blobs, trees and tags, too

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

 



Hi,

On Thu, 14 Dec 2006, Junio C Hamano wrote:

> Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes:
> 
> > +			ret = show_object(o->sha1, 1);
> > +			objects[i].item = (struct object *)t->tagged;
> > +			i--;
> > +			break;
> 
> Good hack ;-).

Tail recursion ;-)

It has a nice side effect, too: the _name_ of the object is not changed, 
so if you show a tag which references a tree, you will see the name of the 
tag as if it were the name of the tree.

Ciao,
Dscho

-
To unsubscribe from this list: 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]