* [PATCH] doc: interpret-trailers: fix cmd examples
@ 2026-09-27 14:12 kristofferhaugsbakk
2026-09-28 18:29 ` Junio C Hamano
2026-10-03 16:03 ` [PATCH v2] " kristofferhaugsbakk
0 siblings, 2 replies; 5+ messages in thread
From: kristofferhaugsbakk @ 2026-09-27 14:12 UTC (permalink / raw)
To: git; +Cc: Kristoffer Haugsbakk, ZheNing Hu
From: Kristoffer Haugsbakk <code@khaugsbakk.name>
Fix `trailer.<key-alias>.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 <code@khaugsbakk.name>
---
Notes (series):
Topic name: kh/doc-trailers-cmd-examples
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 77b4f63b05c..3e81632b252 100644
--- a/Documentation/git-interpret-trailers.adoc
+++ b/Documentation/git-interpret-trailers.adoc
@@ -305,9 +305,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
@@ -329,9 +328,8 @@ Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Christian Couder <christian.couder@gmail.com>
------------
-* 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
base-commit: e9019fcafe0040228b8631c30f97ae1adb61bcdc
--
2.55.0.793.gc667de3f2c5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] doc: interpret-trailers: fix cmd examples
2026-09-27 14:12 [PATCH] doc: interpret-trailers: fix cmd examples kristofferhaugsbakk
@ 2026-09-28 18:29 ` Junio C Hamano
2026-09-29 19:10 ` Kristoffer Haugsbakk
2026-10-03 16:03 ` [PATCH v2] " kristofferhaugsbakk
1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2026-09-28 18:29 UTC (permalink / raw)
To: kristofferhaugsbakk; +Cc: git, Kristoffer Haugsbakk, ZheNing Hu
kristofferhaugsbakk@fastmail.com writes:
> From: Kristoffer Haugsbakk <code@khaugsbakk.name>
>
> Fix `trailer.<key-alias>.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:
This read as if you are declaring that you use a template that
invented to consistently give intro for each example, and made it
look like the use of `see` was as a placeholder. It would have
avoided the "Huh?" reaction if it were phrased like so:
Steal how example to show the `see` trailer is phrased and use
it throughout:
Configure a `see` trailer ...
Other than that, this looks good.
> Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
> ---
>
> Notes (series):
> Topic name: kh/doc-trailers-cmd-examples
>
> 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 77b4f63b05c..3e81632b252 100644
> --- a/Documentation/git-interpret-trailers.adoc
> +++ b/Documentation/git-interpret-trailers.adoc
> @@ -305,9 +305,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
> @@ -329,9 +328,8 @@ Helped-by: Junio C Hamano <gitster@pobox.com>
> Helped-by: Christian Couder <christian.couder@gmail.com>
> ------------
>
> -* 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
>
> base-commit: e9019fcafe0040228b8631c30f97ae1adb61bcdc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] doc: interpret-trailers: fix cmd examples
2026-09-28 18:29 ` Junio C Hamano
@ 2026-09-29 19:10 ` Kristoffer Haugsbakk
0 siblings, 0 replies; 5+ messages in thread
From: Kristoffer Haugsbakk @ 2026-09-29 19:10 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, ZheNing Hu
On Mon, Sep 28, 2026, at 20:29, Junio C Hamano wrote:
> kristofferhaugsbakk@fastmail.com writes:
>
>> From: Kristoffer Haugsbakk <code@khaugsbakk.name>
>>
>> Fix `trailer.<key-alias>.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:
>
> This read as if you are declaring that you use a template that
> invented to consistently give intro for each example, and made it
> look like the use of `see` was as a placeholder. It would have
> avoided the "Huh?" reaction if it were phrased like so:
>
> Steal how example to show the `see` trailer is phrased and use
> it throughout:
>
> Configure a `see` trailer ...
>
> Other than that, this looks good.
I’ll make that change.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] doc: interpret-trailers: fix cmd examples
2026-09-27 14:12 [PATCH] doc: interpret-trailers: fix cmd examples kristofferhaugsbakk
2026-09-28 18:29 ` Junio C Hamano
@ 2026-10-03 16:03 ` kristofferhaugsbakk
2026-10-04 16:10 ` Junio C Hamano
1 sibling, 1 reply; 5+ messages in thread
From: kristofferhaugsbakk @ 2026-10-03 16:03 UTC (permalink / raw)
To: git; +Cc: Kristoffer Haugsbakk
From: Kristoffer Haugsbakk <code@khaugsbakk.name>
Fix `trailer.<key-alias>.cmd` examples which have remained unchanged
since they were written in c364b7ef (trailer: add new .cmd config
option, 2021-05-03). (Modulo formatting changes.)
Steal how the `see` example is phrased and use that as a template:
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 <code@khaugsbakk.name>
---
Notes (series):
Topic name (applied): kh/doc-trailers-cmd-examples
v2:
• *Steal* the *existing* example:
https://lore.kernel.org/git/xmqqh5j9mdpx.fsf@gitster.g/
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 77b4f63b05c..3e81632b252 100644
--- a/Documentation/git-interpret-trailers.adoc
+++ b/Documentation/git-interpret-trailers.adoc
@@ -305,9 +305,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
@@ -329,9 +328,8 @@ Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Christian Couder <christian.couder@gmail.com>
------------
-* 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
Interdiff against v1:
Range-diff against v1:
1: c916709d7a3 ! 1: a8c56a91163 doc: interpret-trailers: fix cmd examples
@@ Commit message
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:
+ Steal how the `see` example is phrased and use that as a template:
Configure a `see` trailer with a command to show the subject of a
commit that is related, and show how it works:
base-commit: e9019fcafe0040228b8631c30f97ae1adb61bcdc
--
2.55.0.793.gc667de3f2c5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] doc: interpret-trailers: fix cmd examples
2026-10-03 16:03 ` [PATCH v2] " kristofferhaugsbakk
@ 2026-10-04 16:10 ` Junio C Hamano
0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2026-10-04 16:10 UTC (permalink / raw)
To: kristofferhaugsbakk; +Cc: git, Kristoffer Haugsbakk
kristofferhaugsbakk@fastmail.com writes:
> From: Kristoffer Haugsbakk <code@khaugsbakk.name>
>
> Fix `trailer.<key-alias>.cmd` examples which have remained unchanged
> since they were written in c364b7ef (trailer: add new .cmd config
> option, 2021-05-03). (Modulo formatting changes.)
>
> Steal how the `see` example is phrased and use that as a template:
>
> 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 <code@khaugsbakk.name>
> ---
Let me mark the topic for 'next'.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-10-04 16:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27 14:12 [PATCH] doc: interpret-trailers: fix cmd examples kristofferhaugsbakk
2026-09-28 18:29 ` Junio C Hamano
2026-09-29 19:10 ` Kristoffer Haugsbakk
2026-10-03 16:03 ` [PATCH v2] " kristofferhaugsbakk
2026-10-04 16:10 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox