Re: git-show-refs (was: [PATCH/RFC] gitweb: Great subroutines renaming)

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

 



Junio C Hamano wrote:

> +<format>::
> +       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


-
: 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]