Re: [PATCH 4/6] doc: add more pointers to gitattributes(5) for userdiff
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Oct 28, 2020, 17:26 UTC
- Message-ID
- <CAPig+cTA7akd7oB_14yBRhxXrH-mVX3yVtaPDdFDT+OTZdQuQQ@mail.gmail.com>
- In-Reply-To
- <da76a10717c917abab9e1bd5ab78db2a4f7ca7c0.1603889270.git.gitgitgadget@gmail.com>
On Wed, Oct 28, 2020 at 8:48 AM Philippe Blain via GitGitGadget <gitgitgadget@gmail.com> wrote:
Show 12 quoted lines
> Several Git commands can make use of the builtin userdiff patterns, but > it's not obvious in the documentation. Add pointers to the 'Defining a > custom hunk header' part of gitattributes(5) in the description of the > following options: > [...] > Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com> > --- > diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt > @@ -695,7 +695,10 @@ endif::git-format-patch[] > --function-context:: > - Show whole surrounding functions of changes. > + Show whole functions as context lines for each changes.
s/changes/change/
> + The function names are determined in the same way as > + `git diff` works out patch hunk headers (see 'Defining a > + custom hunk-header' in linkgit:gitattributes[5]).