]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: use pretty.c logic for trailers
authorHariom Verma <hariom18599@gmail.com>
Sat, 13 Feb 2021 01:52:43 +0000 (01:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Feb 2021 00:48:38 +0000 (16:48 -0800)
commitee82a487f68a7c86551fb59f6176812d63be61b6
treeb1628f0a6af93dcf451a60e83ffdc23eb75ceb6d
parent636a0aeedfee5f3cce2ebf1fcc174a49ab9bb0c3
ref-filter: use pretty.c logic for trailers

Now, ref-filter is using pretty.c logic for setting trailer options.

New to ref-filter:
  :key=<K> - only show trailers with specified key.
  :valueonly[=val] - only show the value part.
  :separator=<SEP> - inserted between trailer lines.
  :key_value_separator=<SEP> - inserted between key and value in trailer lines

Enhancement to existing options(now can take value and its optional):
  :only[=val]
  :unfold[=val]

'val' can be: true, on, yes or false, off, no.

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