]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: add `short` modifier to 'tree' atom
authorHariom Verma <hariom18599@gmail.com>
Fri, 21 Aug 2020 21:41:47 +0000 (21:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Aug 2020 20:52:50 +0000 (13:52 -0700)
commit837adb102f6bfd6e05c75afc630f20c1c720cc74
treebb39e8156d91da5f29273febbc1c29d861c6348c
parent87d3beb6e0eedfb83a8dd425e3c612d977b6ac8d
ref-filter: add `short` modifier to 'tree' atom

Sometimes while using 'tree' 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 'tree' hash.

Let's introduce `short` option to 'tree' 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