Skip to content

interpret-trailers: add --where, --if-exists, --if-missing

Paolo Bonzini git 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 2 repliesIn review
  2. v33 patches 1 replySuperseded
  3. v23 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches6 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4trailers: export action enums and corresponding lookup functionstrailer.c trailer.h+55 -320 replies
2/4trailers: introduce struct new_trailer_itembuiltin/interpret-trailers.c trailer.c trailer.h+61 -130 replies
3/4interpret-trailers: add options for actionsDocumentation/git-interpret-trailers.txt builtin/interpret-trailers.c t/t7513-interpret-trailers.sh +2 more+156 -60 replies
4/4interpret-trailers: fix documentation typoDocumentation/git-interpret-trailers.txt+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/4] interpret-trailers: add --where, --if-exists, --if-missing

From: Paolo Bonzini <[email protected]>

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(-)
Signature · 1 line
2.13.3