Re: [PATCH] git-show: grok blobs, trees and tags, too
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 14, 2006, 10:58 UTC
- Message-ID
- <Pine.LNX.4.63.0612141156290.3635@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7v3b7i92ez.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 14 Dec 2006, Junio C Hamano wrote:
Show 8 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> 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