diff options
| author | Kristoffer Haugsbakk <code@khaugsbakk.name> | 2023-05-01 22:02:40 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-05-01 13:26:41 -0700 |
| commit | f68c26873d57db064831e9be97555f301dd6fe41 (patch) | |
| tree | 27a3ee7aa4086c044ed4d8962a1b2b64ce160052 /diff.c | |
| parent | doc: interpret-trailers: use input redirection (diff) | |
| download | git-f68c26873d57db064831e9be97555f301dd6fe41.tar.gz git-f68c26873d57db064831e9be97555f301dd6fe41.zip | |
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>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
