]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: add new "describe" atom
authorKousik Sanagavarapu <five231003@gmail.com>
Sun, 23 Jul 2023 16:19:59 +0000 (21:49 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Jul 2023 17:42:29 +0000 (10:42 -0700)
commitf5d18f8c0ef9cc3e62420268c2e72d1fd46b940c
treea8dd3a165f6cf3a8b0e88004b04d424c178f4fcc
parentf46094a5e6b80098786b4e1448be032dfbdf3f43
ref-filter: add new "describe" atom

Duplicate the logic of %(describe) and friends from pretty to
ref-filter. In the future, this change helps in unifying both the
formats as ref-filter will be able to do everything that pretty is doing
and we can have a single interface.

The new atom "describe" and its friends are equivalent to the existing
pretty formats with the same name.

Helped-by: Junio C Hamano <gitster@pobox.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Kousik Sanagavarapu <five231003@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