git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
May 1, 2023, 20:02 UTC
Message-ID
<cover.1682970213.git.code@khaugsbakk.name>
In-Reply-To
<cover.1680548208.git.code@khaugsbakk.name>

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
      Signed-off-by: Bob <bob@example.com>
     -$ 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.
    +
         Suggested-by: Junio C Hamano <gitster@pobox.com>
         Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
      ## Notes (series) ##
    -    Link: https://lore.kernel.org/git/xmqqbkk44qbo.fsf@gitster.g/
    +    Junio suggested expanding the commit message:
    +    https://lore.kernel.org/git/xmqqjzyg7qdw.fsf@gitster.g/
      ## 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
      Signed-off-by: Bob <bob@example.com>
     @@ 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
Previous: Junio C HamanoNext: Kristoffer Haugsbakk
Message 15 of 33 in “doc: interpret-trailers: remove trailing spaces”
  1. 1/3 doc: interpret-trailers: remove trailing spacesKristoffer Haugsbakk, Mar 31, 2023
  2. Kristoffer HaugsbakkMar 31, 2023
  3. Kristoffer HaugsbakkMar 31, 2023
  4. Junio C HamanoMar 31, 2023
  5. Junio C HamanoMar 31, 2023
  6. 0/3 doc: interpret-trailers: don't use deprecated configKristoffer Haugsbakk, Apr 3, 2023
  7. 0/4 doc: interpret-trailers: don't use deprecated configKristoffer Haugsbakk, Apr 12, 2023
  8. 1/4 doc: interpret-trailers: don’t use heredoc in examplesKristoffer Haugsbakk, Apr 12, 2023
  9. Junio C HamanoApr 12, 2023
  10. 2/4 doc: interpret-trailers: use input redirectionKristoffer Haugsbakk, Apr 12, 2023
  11. Junio C HamanoApr 12, 2023
  12. 3/4 doc: interpret-trailers: don’t use deprecated configKristoffer Haugsbakk, Apr 12, 2023
  13. 4/4 doc: interpret-trailers: fix exampleKristoffer Haugsbakk, Apr 12, 2023
  14. Junio C HamanoApr 12, 2023
  15. 0/4 doc: interpret-trailers: don't use deprecated configKristoffer Haugsbakk, May 1, 2023
  16. 1/4 doc: interpret-trailers: don’t use heredoc in examplesKristoffer Haugsbakk, May 1, 2023
  17. 2/4 doc: interpret-trailers: use input redirectionKristoffer Haugsbakk, May 1, 2023
  18. 3/4 doc: interpret-trailers: don’t use deprecated configKristoffer Haugsbakk, May 1, 2023
  19. 4/4 doc: interpret-trailers: fix exampleKristoffer Haugsbakk, May 1, 2023
  20. Junio C HamanoMay 1, 2023
  21. 2/3 doc: interpret-trailers: don’t use deprecated configKristoffer Haugsbakk, Mar 31, 2023
  22. Andrei RybakApr 1, 2023
  23. 3/3 doc: interpret-trailers: fix exampleKristoffer Haugsbakk, Mar 31, 2023
  24. 1/3 doc: interpret-trailers: don’t use heredoc in examplesKristoffer Haugsbakk, Apr 3, 2023
  25. Junio C HamanoApr 3, 2023
  26. 2/3 doc: interpret-trailers: don’t use deprecated configKristoffer Haugsbakk, Apr 3, 2023
  27. Junio C HamanoApr 3, 2023
  28. Kristoffer HaugsbakkApr 4, 2023
  29. Junio C HamanoApr 4, 2023
  30. ZheNing HuApr 5, 2023
  31. ZheNing HuApr 5, 2023
  32. Kristoffer HaugsbakkApr 5, 2023
  33. 3/3 doc: interpret-trailers: fix examplesKristoffer Haugsbakk, Apr 3, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.