From 5eeb60b3f0fbac64365f24803998b722dac6b8b5 Mon Sep 17 00:00:00 2001 From: Kristoffer Haugsbakk Date: Sun, 27 Sep 2026 16:12:27 +0200 Subject: [PATCH] doc: interpret-trailers: fix cmd examples Fix `trailer..cmd` examples which have remained unchanged since they were written in c364b7ef (trailer: add new .cmd config option, 2021-05-03). (Modulo formatting changes.) Use this example as a guide for how to phrase it: Configure a `see` trailer with a command to show the subject of a commit that is related, and show how it works: Signed-off-by: Kristoffer Haugsbakk Signed-off-by: Junio C Hamano --- Documentation/git-interpret-trailers.adoc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Documentation/git-interpret-trailers.adoc b/Documentation/git-interpret-trailers.adoc index 903d598dcb..947d50424c 100644 --- a/Documentation/git-interpret-trailers.adoc +++ b/Documentation/git-interpret-trailers.adoc @@ -329,9 +329,8 @@ subject Fix #42 ------------ -* Configure a `help` trailer with a cmd use a script `glog-find-author` - which search specified author identity from git log in git repository - and show how it works: +* Configure a `help` trailer with a command that searches for an author + identity and show how it works: + ------------ $ cat ~/bin/glog-find-author @@ -353,9 +352,8 @@ Helped-by: Junio C Hamano Helped-by: Christian Couder ------------ -* Configure a `ref` trailer with a cmd use a script `glog-grep` - to grep last relevant commit from git log in the git repository - and show how it works: +* Configure a `ref` trailer with a command that searches for the last + relevant commit and show how it works: + ------------ $ cat ~/bin/glog-grep