git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] interpret-trailers: add --where, --if-exists, --if-missing
@ 2017-07-24  8:20 Paolo Bonzini
  2017-07-24  8:22 ` [PATCH v3 1/3] trailers: export action enums and corresponding lookup functions Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Bonzini @ 2017-07-24  8:20 UTC (permalink / raw)
  To: git; +Cc: Christian Couder, Jonathan Tan, Paolo Bonzini

From: Paolo Bonzini <pbonzini@redhat.com>

These options are useful to experiment with "git interpret-trailers"
without having to tinker with .gitconfig (Junio said git should ahve
done this first and only added configuration afterwards).  It can
be useful in the case where you want a different placement for the trailer,
or for scripts/aliases that don't want to rely on specific .gitconfig
settings.

Compared to v2, the main change is that option order on the command-line
is respected.  That is,

	--trailer 'acked-by: foo' --where end --trailer 'signed-off-by: me'

will only apply where=end to the second trailer.  Likewise,

	--where end --trailer 'signed-off-by: me' --no-where \
	--trailer 'acked-by: foo'

will only apply it to the first, reverting to trailer.*.where for the
"acked-by" trailer.

Paolo

v1->v2: support --no-* options, minor code fixes

v2->v3: largely rewritten to respect option order on the command-line;
	keep trailer.h namespace clean (Christian)

Paolo Bonzini (3):
  trailers: export action enums and corresponding lookup functions
  trailers: introduce struct new_trailer_item
  interpret-trailers: add options for actions

 Documentation/git-interpret-trailers.txt |  24 +++++++
 builtin/interpret-trailers.c             |  73 ++++++++++++++++++--
 t/t7513-interpret-trailers.sh            |  66 ++++++++++++++++++
 trailer.c                                | 113 ++++++++++++++++++-------------
 trailer.h                                |  43 +++++++++++-
 5 files changed, 267 insertions(+), 52 deletions(-)

-- 
2.13.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-25 21:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-24  8:20 [PATCH v3 0/3] interpret-trailers: add --where, --if-exists, --if-missing Paolo Bonzini
2017-07-24  8:22 ` [PATCH v3 1/3] trailers: export action enums and corresponding lookup functions Paolo Bonzini
2017-07-24  8:22 ` [PATCH v3 2/3] trailers: introduce struct new_trailer_item Paolo Bonzini
2017-07-24  8:22 ` [PATCH v3 3/3] interpret-trailers: add options for actions Paolo Bonzini
2017-07-25 21:22 ` [PATCH v3 0/3] interpret-trailers: add --where, --if-exists, --if-missing Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).