On Sun, Sep 5, 2021 at 8:05 AM Hamza Mahfooz <someguy@xxxxxxxxxxxxxxxxxxx> wrote: > [...] > Teach the pretty-printer code to highlight matches from the > "--grep=<pattern>", "--author=<pattern>" and "--committer=<pattern>" > options (to view the last one, you may have to ask for --pretty=fuller). > > Signed-off-by: Hamza Mahfooz <someguy@xxxxxxxxxxxxxxxxxxx> > --- > diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt > @@ -232,6 +232,14 @@ notes.displayRef:: > or `GIT_NOTES_REF`, to read notes from when showing commit > messages with the `log` family of commands. See > linkgit:git-notes[1]. > + > +color.grep.selected:: > + Determines the non matching text (background) color of selected lines, > + when `--grep`, `--author` or `--committer` are used. > + > +color.grep.matchSelected:: > + Determines the matching text (foreground) color of selected lines, when > + `--grep`, `--author` or `--committer` are used. > + > May be an unabbreviated ref name or a glob and may be specified > multiple times. A warning will be issued for refs that do not exist, The paragraph which begins "May be an unabbreviated..." belongs to the `notes.displayRef` item (which is indicated by the line containing only a `+` just before the paragraph), so this newly-inserted text incorrectly divorces the item from the rest of its description. The two new `color.grep.*` items which this patch adds should be placed after _all_ the paragraphs connected by `+` lines.