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: ebdc46c242 (docs: link generating patch sections) Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sergey Organov committed Sep 6, 2023 at 10:15 UTC 11422f23e3ed0efc60288e92a77c42c8fa6c1483
1 file changed +1 -7
Documentation/diff-options.txt
+1 -7
@@ -22,13 +22,7 @@ ifndef::git-format-patch[]
22 -p::
23 -u::
24 --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>>).
26 ifdef::git-diff[]
27 This is the default.
28 endif::git-diff[]