author | Andy Parkins <andyparkins@gmail.com> | |
Fri, 28 Sep 2007 14:17:39 +0000 (15:17 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 30 Sep 2007 03:31:59 +0000 (20:31 -0700) | ||
commit | b64265ca8da17d30561febf62a13990a2dc96d2f | |
tree | 9d2a95b938059834d703bc1acc7a22f44e635c8b | tree | snapshot |
parent | 856665f827c31ace3f19e672f8911f7f15f2a0e2 | commit | diff |
Make for-each-ref allow atom names like "<name>:<something>"
In anticipation of supplying a per-field date format specifier, this
patch makes parse_atom() in builtin-for-each-ref.c allow atoms that have
a valid atom name (as determined by the valid_atom[] table) followed by
a colon, followed by an arbitrary string.
The arbitrary string is where the format for the atom will be specified.
Note, if different formats are specified for the same atom, multiple
entries will be made in the used_atoms table to allow them to be
distinguished by the grab_XXXX() functions.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In anticipation of supplying a per-field date format specifier, this
patch makes parse_atom() in builtin-for-each-ref.c allow atoms that have
a valid atom name (as determined by the valid_atom[] table) followed by
a colon, followed by an arbitrary string.
The arbitrary string is where the format for the atom will be specified.
Note, if different formats are specified for the same atom, multiple
entries will be made in the used_atoms table to allow them to be
distinguished by the grab_XXXX() functions.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c | diff | blob | history |