Skip to content

Commit c253d61

Browse files
committed
Merge branch 'jc/doc-diff-patch.txt'
Doc update. * jc/doc-diff-patch.txt: docs: link generating patch sections
2 parents fc2735f + ebdc46c commit c253d61

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Documentation/diff-generate-patch.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[[generate_patch_text_with_p]]
12
Generating patch text with -p
23
-----------------------------
34

Documentation/diff-options.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ ifndef::git-format-patch[]
2222
-p::
2323
-u::
2424
--patch::
25-
Generate patch (see section on generating patches).
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[]
2632
ifdef::git-diff[]
2733
This is the default.
2834
endif::git-diff[]

0 commit comments

Comments
 (0)