From: Paolo Bonzini <bonzini@gnu.org>
To: git@vger.kernel.org
Cc: Christian Couder <christian.couder@gmail.com>,
Jonathan Tan <jonathantanmy@google.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: [PATCH v4 0/4] interpret-trailers: add --where, --if-exists, --if-missing
Date: Tue, 1 Aug 2017 11:03:29 +0200 [thread overview]
Message-ID: <20170801090333.32642-1-bonzini@gnu.org> (raw)
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)
v3->v4: fix compilation warnings (Junio), added documentation fix
Paolo Bonzini (4):
trailers: export action enums and corresponding lookup functions
trailers: introduce struct new_trailer_item
interpret-trailers: add options for actions
interpret-trailers: fix documentation typo
Documentation/git-interpret-trailers.txt | 27 ++++++-
builtin/interpret-trailers.c | 73 +++++++++++++++++--
t/t7513-interpret-trailers.sh | 66 +++++++++++++++++
trailer.c | 118 +++++++++++++++++++------------
trailer.h | 43 ++++++++++-
5 files changed, 274 insertions(+), 53 deletions(-)
--
2.13.3
next reply other threads:[~2017-08-01 9:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-01 9:03 Paolo Bonzini [this message]
2017-08-01 9:03 ` [PATCH v4 1/4] trailers: export action enums and corresponding lookup functions Paolo Bonzini
2017-08-01 9:03 ` [PATCH v4 2/4] trailers: introduce struct new_trailer_item Paolo Bonzini
2017-08-01 9:03 ` [PATCH v4 3/4] interpret-trailers: add options for actions Paolo Bonzini
2017-08-01 9:03 ` [PATCH v4 4/4] interpret-trailers: fix documentation typo Paolo Bonzini
2017-08-14 9:26 ` [PATCH v4 0/4] interpret-trailers: add --where, --if-exists, --if-missing Paolo Bonzini
2017-08-14 17:57 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170801090333.32642-1-bonzini@gnu.org \
--to=bonzini@gnu.org \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=jonathantanmy@google.com \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).