author | Michał Górny <mgorny@gentoo.org> | |
Wed, 7 Sep 2011 17:46:08 +0000 (13:46 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Sep 2011 20:56:19 +0000 (13:56 -0700) | ||
commit | e2b239722a5806521016835f86e6c29c630a0e60 | |
tree | 5bb94f5b2df5fa09206e6bd225675bc471ac6f3e | tree | snapshot |
parent | 7f6e275bc003e04fca63ae1058bb665078f72d7e | commit | diff |
for-each-ref: add split message parts to %(contents:*).
The %(body) placeholder returns the whole body of a tag or
commit, including the signature. However, callers may want
to get just the body without signature, or just the
signature.
Rather than change the meaning of %(body), which might break
some scripts, this patch introduces a new set of
placeholders which break down the %(contents) placeholder
into its constituent parts.
[jk: initial patch by mg, rebased on top of my refactoring
and with tests by me]
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The %(body) placeholder returns the whole body of a tag or
commit, including the signature. However, callers may want
to get just the body without signature, or just the
signature.
Rather than change the meaning of %(body), which might break
some scripts, this patch introduces a new set of
placeholders which break down the %(contents) placeholder
into its constituent parts.
[jk: initial patch by mg, rebased on top of my refactoring
and with tests by me]
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt | diff | blob | history | |
builtin/for-each-ref.c | diff | blob | history | |
t/lib-gpg.sh | diff | blob | history | |
t/t6300-for-each-ref.sh | diff | blob | history |