From: Jakub Narebski Date: Tue, 08 Aug 2006 18:12:18 GMT Subject: Re: git-show-refs (was: [PATCH/RFC] gitweb: Great subroutines renaming) Message-ID: In-Reply-To: <7vejvsyum8.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > +:: > +       A string that interpolates `%(field name)` from the > +       object pointed at by a ref being shown.  When > +       unspecified, `%(name)` is used. Wouldn't it be better to (re)use notation of rpm's --query-format, i.e. use %{name}, or %30{name}, or %-30{name} for single scalar values, use :typetag output formats, like ':date' (Use strftime(3) "%c" format.) and ':day' (Use strftime(3) "%a %b %d %Y" format.) for epoch/timestamp field, use square brackets for iterating over multivalue output, e.g. "[parent: %{parent}]" for writing out all parents, etc. Perhaps we could even borrow some code... -- Jakub Narebski Warsaw, Poland ShadeHawk on #git