@matheusbsbs / matheus-bagliano / commits / ba7545adab
Fork 0

Documentation: Update information about <format> in git-for-each-ref

Update information about value of <format> used when it is left unspecified. Add information about `%%` and `%xx` interpolation (URL encoding). Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Oct 28, 2006 at 19:30 UTC ba7545adab83e6bea43353937eabb467bcb7d4f7
1 file changed +5 -1
Documentation/git-for-each-ref.txt
+5 -1
@@ -38,7 +38,11 @@ OPTIONS
38 is prefixed with an asterisk (`*`) and the ref points
39 at a tag object, the value for the field in the object
40 tag refers is used. When unspecified, defaults to
41 - `%(refname)`.
41 + `%(objectname) SPC %(objecttype) TAB %(refname)`.
42 + It also interpolates `%%` to `%`, and `%xx` where `xx`
43 + are hex digits interpolates to character with hex code
44 + `xx`; for example `%00` interpolates to `\0` (NUL),
45 + `%09` to `\t` (TAB) and `%0a` to `\n` (LF).
46
47 <pattern>::
48 If given, the name of the ref is matched against this