]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter: add `short` modifier to 'parent' atom
authorHariom Verma <hariom18599@gmail.com>
Fri, 21 Aug 2020 21:41:48 +0000 (21:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Aug 2020 20:52:50 +0000 (13:52 -0700)
commit26bc0aaf99147cdf2d29cb6d831dfa72ec94b61b
tree403861bc2ecaf7ae1070e60d4f90632b64ced335
parent837adb102f6bfd6e05c75afc630f20c1c720cc74
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 <chriscool@tuxfamily.org>
Mentored-by: Heba Waly <heba.waly@gmail.com>
Signed-off-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt
ref-filter.c
t/t6300-for-each-ref.sh