docs: link generating patch sections
commitebdc46c242ac53d73295ba8953456b571dbad322
authorJohn Cai <johncai86@gmail.com>
Fri, 13 Jan 2023 16:15:24 +0000 (13 16:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 20:55:14 +0000 (13 12:55 -0800)
tree5f8e85dd9b10a7a6faf3c7ffba40a1fa402c8534
parentc48035d29b4e524aed3a32f0403676f0d9128863
docs: link generating patch sections

Currently, in the git-log documentation, the reference to generating
patches does not match the section title. This can make the section
"Generating patch text with -p" hard to find, since typically readers of
the documentation will copy and paste to search the page.

Let's make this more convenient for readers by linking it directly to
the section.

Since git-log pulls in diff-generate-patch.txt, we can provide a direct
link to the section. Otherwise, change the verbiage to match exactly
what the section title is, to at least make searching for it an easier
task.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-generate-patch.txt
Documentation/diff-options.txt