]> git.ipfire.org Git - thirdparty/git.git/commit
doc: interpret-trailers: don’t use deprecated config
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Mon, 1 May 2023 20:02:40 +0000 (22:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 May 2023 20:26:41 +0000 (13:26 -0700)
commitf68c26873d57db064831e9be97555f301dd6fe41
tree27a3ee7aa4086c044ed4d8962a1b2b64ce160052
parentb032a2bfe74e46acc451873ee5ebbf7f61b738ce
doc: interpret-trailers: don’t use deprecated config

`command` has been deprecated since commit c364b7ef51 (trailer: add new
.cmd config option, 2021-05-03).

Use the commit message of c364b7ef51 as a guide to replace the use of
`$ARG` and to use a script instead of an inline command.[1] Also,
explicitly trigger the command by passing in `--trailer=see`, since
this config is not automatically used.[2]

[1]: “Instead of "$ARG", users can refer to the value as positional
   argument, $1, in their scripts.”
[2]: “At the same time, in order to allow `git interpret-trailers` to
   better simulate the behavior of `git command -s`,
   'trailer.<token>.cmd' will not automatically execute.”

Acked-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-interpret-trailers.txt