Skip to content

Commit 11422f2

Browse files
sorganovgitster
authored andcommitted
doc/diff-options: fix link to generating patch section
When formatted as man-page, the section title is rendered "GENERATING PATCH TEXT WITH -P" whereas reference still reads "Generating patch text with -p", that is inconsistent and makes searching harder than it needs to be. Fix this by getting rid of custom reference text. Also, documentation for every command that describes `-p` option by including the "diff-options.txt" file does include the "diff-generate-patch.txt" file as well (as it should), so the internal link is in fact useful for any of them. Fix this by getting rid of conditionals around the reference. Fixes: ebdc46c (docs: link generating patch sections) Signed-off-by: Sergey Organov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fb7d80e commit 11422f2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Documentation/diff-options.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ ifndef::git-format-patch[]
2222
-p::
2323
-u::
2424
--patch::
25-
Generate patch (see section titled
26-
ifdef::git-log[]
27-
<<generate_patch_text_with_p, "Generating patch text with -p">>).
28-
endif::git-log[]
29-
ifndef::git-log[]
30-
"Generating patch text with -p").
31-
endif::git-log[]
25+
Generate patch (see <<generate_patch_text_with_p>>).
3226
ifdef::git-diff[]
3327
This is the default.
3428
endif::git-diff[]

0 commit comments

Comments
 (0)