From: Linus Torvalds Date: Fri, 19 Aug 2005 00:50:52 GMT Subject: Re: [PATCH] Teach parse_commit_buffer about grafting. Message-ID: In-Reply-To: <17157.10227.296309.809074@cargo.ozlabs.ibm.com> On Fri, 19 Aug 2005, Paul Mackerras wrote: > > > Umm. git-rev-list really does everything. Rule of thumb: if you _ever_ > > need to look at any other internal git information, you're probably doing > > something wrong, or you've missed yet another flag ;) > > I still look in [gitdir]/refs/tags/* and [gitdir]/refs/heads/*, what > flag have I missed? :) Junio wants me to look at everything under > [gitdir]/refs, in fact. Or are the refs not considered internal git > information? Ahh, ok, fair enough. git-rev-list won't give you that. And yes, the general rule is that anything under .git/refs/ is potentially a reference. If it's under "heads/" or "tags/" it's a branch/tag, and then the prefix "heads/" or "tags/" shouldn't be part of the name - you already show the difference with colors. Anything else is unusual, but bisection puts refs in the ".git/refs/bisect" directory for example, and if gitk were to show those, it should probably show them in yet another color, and _with_ the "bisect/" prefix.. Linus