aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-for-each-ref.txt
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-10-28 19:30:05 +0200
committerJunio C Hamano <junkio@cox.net>2006-10-28 14:23:34 -0700
commitba7545adab83e6bea43353937eabb467bcb7d4f7 (patch)
tree352363026a659452c60c62de9a6ba7d4695ff505 /Documentation/git-for-each-ref.txt
parent367dce2a5b80da055a0d776fe830e6f19b81bd1d (diff)
downloadgit-ba7545adab83e6bea43353937eabb467bcb7d4f7.tar.gz
git-ba7545adab83e6bea43353937eabb467bcb7d4f7.tar.xz
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>
Diffstat (limited to 'Documentation/git-for-each-ref.txt')
-rw-r--r--Documentation/git-for-each-ref.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index d5fdcef8d..4af1ebf5d 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -38,7 +38,11 @@ OPTIONS
is prefixed with an asterisk (`*`) and the ref points
at a tag object, the value for the field in the object
tag refers is used. When unspecified, defaults to
- `%(refname)`.
+ `%(objectname) SPC %(objecttype) TAB %(refname)`.
+ It also interpolates `%%` to `%`, and `%xx` where `xx`
+ are hex digits interpolates to character with hex code
+ `xx`; for example `%00` interpolates to `\0` (NUL),
+ `%09` to `\t` (TAB) and `%0a` to `\n` (LF).
<pattern>::
If given, the name of the ref is matched against this