From: Johannes Schindelin Date: Thu, 14 Dec 2006 10:58:39 GMT Subject: Re: [PATCH] git-show: grok blobs, trees and tags, too Message-ID: In-Reply-To: <7v3b7i92ez.fsf@assigned-by-dhcp.cox.net> Hi, On Thu, 14 Dec 2006, Junio C Hamano wrote: > Johannes Schindelin 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