doc: point to diff attribute in patch format docs

From the documentation for generating patch text with diff-related commands, refer to the documentation for the diff attribute. This attribute influences the way that patches are generated, but this was previously not mentioned in e.g., the git-diff manpage. Signed-off-by: Peter Oliver <git@mavit.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Peter Oliver committed Apr 27, 2021 at 11:02 UTC 7a14acdbe6ff9934da6efd7d165dee4d205ec8fb
1 file changed +6 -1
Documentation/diff-generate-patch.txt
+6 -1
@@ -11,7 +11,7 @@ linkgit:git-diff-files[1]
11 with the `-p` option produces patch text.
12 You can customize the creation of patch text via the
13 `GIT_EXTERNAL_DIFF` and the `GIT_DIFF_OPTS` environment variables
14 -(see linkgit:git[1]).
14 +(see linkgit:git[1]), and the `diff` attribute (see linkgit:gitattributes[5]).
15
16 What the -p option produces is slightly different from the traditional
17 diff format:
@@ -74,6 +74,11 @@ separate lines indicate the old and the new mode.
74 rename from b
75 rename to a
76
77 +5. Hunk headers mention the name of the function to which the hunk
78 + applies. See "Defining a custom hunk-header" in
79 + linkgit:gitattributes[5] for details of how to tailor to this to
80 + specific languages.
81 +
82
83 Combined diff format
84 --------------------