path: root/Documentation/git-for-each-ref.txt
diff options
authorHariom Verma <>2020-08-21 21:41:48 (GMT)
committerJunio C Hamano <>2020-08-28 20:52:50 (GMT)
commit26bc0aaf99147cdf2d29cb6d831dfa72ec94b61b (patch)
tree403861bc2ecaf7ae1070e60d4f90632b64ced335 /Documentation/git-for-each-ref.txt
parent837adb102f6bfd6e05c75afc630f20c1c720cc74 (diff)
ref-filter: add `short` modifier to 'parent' atom
Sometimes while using 'parent' atom, user might want to see abbrev hash instead of full 40 character hash. Just like 'objectname', it might be convenient for users to have the `:short` and `:short=<length>` option for printing 'parent' hash. Let's introduce `short` option to 'parent' atom. Mentored-by: Christian Couder <> Mentored-by: Heba Waly <> Signed-off-by: Hariom Verma <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-for-each-ref.txt')
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index 40ebdfc..dd09763 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -222,7 +222,7 @@ worktreepath::
In addition to the above, for commit and tag objects, the header
field names (`tree`, `parent`, `object`, `type`, and `tag`) can
be used to specify the value in the header field.
-Field `tree` can also be used with modifier `:short` and
+Fields `tree` and `parent` can also be used with modifier `:short` and
`:short=<length>` just like `objectname`.
For commit and tag objects, the special `creatordate` and `creator`