Skip to content

doc: interpret-trailers: don't use deprecated config

Kristoffer Haugsbakk git 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyIn review
  2. v34 patches 3 repliesSuperseded
  3. v23 patches 12 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4doc: interpret-trailers: don’t use heredoc in examplesDocumentation/git-interpret-trailers.txt+35 -390 replies
2/4doc: interpret-trailers: use input redirectionDocumentation/git-interpret-trailers.txt+1 -10 replies
3/4doc: interpret-trailers: don’t use deprecated configDocumentation/git-interpret-trailers.txt+6 -30 replies
4/4doc: interpret-trailers: fix exampleDocumentation/git-interpret-trailers.txt+17 -30 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchZheNing Hu
1/4
2/4
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] doc: interpret-trailers: don't use deprecated config

Replace deprecated command with cmd (patch 3). While visiting this file also:

• rewrite heredoc examples to use files which are shown with cat(1) (patch 1);
• use input redirection instead of using cat(1) piped into git interpret-trailers (patch 2); and
• fix an example that didn’t work properly (patch 4).

§ Changes in v4

• Patch 1: Use /dev/null instead of empty-msg.txt
• Patch 2: Expand commit message

Kristoffer Haugsbakk (4):
doc: interpret-trailers: don’t use heredoc in examples
doc: interpret-trailers: use input redirection
doc: interpret-trailers: don’t use deprecated config
doc: interpret-trailers: fix example

 Documentation/git-interpret-trailers.txt | 97 ++++++++++++++----------
 1 file changed, 55 insertions(+), 42 deletions(-)

Range-diff against v3:
1: fd515ad8b4 ! 1: 149dcf964c doc: interpret-trailers: don’t use heredoc in examples
@@ Documentation/git-interpret-trailers.txt: $ git config trailer.sign.key "Signed-
$ git config trailer.sign.command 'echo "$(git config user.name) <$(git config user.email)>"'
-$ git interpret-trailers <<EOF
-> EOF
-+$ git interpret-trailers <empty-msg.txt
++$ git interpret-trailers </dev/null

-$ git interpret-trailers <<EOF
2: 12f7b10462 ! 2: 32483aa635 doc: interpret-trailers: use input redirection
@@ Metadata
## Commit message ##
doc: interpret-trailers: use input redirection

+ Use input redirection instead of invoking cat(1) on a single file. This
+ is more straightforward, saves a process, and often makes the line
+ shorter.
+

## Notes (series) ##
- Link: https://lore.kernel.org/git/[email protected]/
+ Junio suggested expanding the commit message:
+ https://lore.kernel.org/git/[email protected]/

## Documentation/git-interpret-trailers.txt ##
@@ Documentation/git-interpret-trailers.txt: $ cat msg.txt
3: dc1982f0d0 ! 3: 9ea4c4f916 doc: interpret-trailers: don’t use deprecated config
@@ Documentation/git-interpret-trailers.txt: $ git interpret-trailers --trailer 'Cc
$ git config trailer.sign.ifexists doNothing
-$ git config trailer.sign.command 'echo "$(git config user.name) <$(git config user.email)>"' +$ git config trailer.sign.cmd 'echo "$(git config user.name) <$(git config user.email)>"'
- $ git interpret-trailers <empty-msg.txt
+ $ git interpret-trailers </dev/null

@@ Documentation/git-interpret-trailers.txt: subject
4: f6e5605107 ! 4: 95760aafe8 doc: interpret-trailers: fix example
@@ Documentation/git-interpret-trailers.txt: $ git interpret-trailers --trailer 'Cc
$ git config trailer.sign.ifmissing add
$ git config trailer.sign.ifexists doNothing
$ git config trailer.sign.cmd 'echo "$(git config user.name) <$(git config user.email)>"'
--$ git interpret-trailers <empty-msg.txt
+-$ git interpret-trailers </dev/null
+$ git interpret-trailers --trailer sign <msg1.txt
+subject
+
--
2.40.1