On Wed, Oct 28, 2020 at 8:48 AM Philippe Blain via GitGitGadget <gitgitgadget@xxxxxxxxx> wrote: > 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@xxxxxxxxx> > --- > 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]).