Skip to contentSkip to conversation

Documentation/git-range-diff: add missing notes options in synopsis

PATCH Superseded Siddh Raman Pant 2 participants 3 messages May 21 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/git-range-diff: add missing notes options in synopsis

git-range-diff supports note options which are also mentioned later in the help, but they are missing from synopis. Let's fix that.

Fixes bd3619188682 ("range-diff: pass through --notes to `git log`")
---
 Documentation/git-range-diff.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/git-range-diff.adoc +1 -1
index 880557084533..5cc5e2ed5673 100644
@@ -11,7 +11,7 @@ SYNOPSIS
 git range-diff [--color=[<when>]] [--no-color] [<diff-options>]
 	[--no-dual-color] [--creation-factor=<factor>]
 	[--left-only | --right-only] [--diff-merges=<format>]
-	[--remerge-diff]
+	[--remerge-diff] [--no-notes | --notes[=<ref>]]
 	( <range1> <range2> | <rev1>...<rev2> | <base> <rev1> <rev2> )
 	[[--] <path>...]
 
Signature · 1 line
2.53.0
#1 lore raw
Quoted 2 lines · Siddh Raman Pant

git-range-diff supports note options which are also mentioned later in the help, but they are missing from synopis. Let's fix that.

s/synopis/synopsis/ or s/synopis/the synopsis/

Quoted 2 lines
Fixes bd3619188682 ("range-diff: pass through --notes to `git log`")

This project doesn’t use Fixes trailers. Mentions of commits go in the commit message body (outside the trailers) using git log -1 --format-reference <cmt>.

The Linux project has uses for this structured information since there is a lot of backporting of bugfixes. But I haven’t heard of a need for that in this project.

Quoted 4 lines
---
 Documentation/git-range-diff.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Okay, there is no need to update the synopsis in the source code since git-range-diff(1) is excluded from t/t0450-txt-doc-vs-help.sh. So this looks correct.

Quoted 3 lines
(quoted diff) +0 -0
[snip]
#2 lore raw

PATCH v2 1/1 Documentation/git-range-diff: add missing notes options in synopsis

git-range-diff supports note options which are also mentioned later in the help, but they are missing from the synopsis. Let's fix that.

---
v1 -> v2: Fixed typo and removed fixes line.

 Documentation/git-range-diff.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/git-range-diff.adoc +1 -1
index 880557084533..5cc5e2ed5673 100644
@@ -11,7 +11,7 @@ SYNOPSIS
 git range-diff [--color=[<when>]] [--no-color] [<diff-options>]
 	[--no-dual-color] [--creation-factor=<factor>]
 	[--left-only | --right-only] [--diff-merges=<format>]
-	[--remerge-diff]
+	[--remerge-diff] [--no-notes | --notes[=<ref>]]
 	( <range1> <range2> | <rev1>...<rev2> | <base> <rev1> <rev2> )
 	[[--] <path>...]
 
Signature · 1 line
2.53.0