diff options
author | Stefan Beller <sbeller@google.com> | 2018-04-23 17:08:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-24 11:03:13 +0900 |
commit | cdc2d5f11f1ab931d2f39fefc6197ea1cab220a6 (patch) | |
tree | 349247d8fbb196429e07d1c3af0696219657625d /Documentation | |
parent | color.h: document and modernize header (diff) | |
download | tgif-cdc2d5f11f1ab931d2f39fefc6197ea1cab220a6.tar.xz |
builtin/blame: dim uninteresting metadata lines
When using git-blame lots of lines contain redundant information, for
example in hunks that consist of multiple lines, the metadata (commit
name, author, date) are repeated. A reader may not be interested in those,
so offer an option to color the information that is repeated from the
previous line differently. Traditionally, we use CYAN for lines that
are less interesting than others (e.g. hunk header), so go with that.
The command line option '--color-lines' will trigger the coloring of
repeated lines, and the config option 'color.blame.colorLines' is
provided to select the color. Setting the config option doesn't imply
that repeated lines are colored. A later patch will introduce a config
to enable this mode by default.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 0e25b2c92b..5d1d22e873 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1218,6 +1218,11 @@ color.status.<slot>:: status short-format), or `unmerged` (files which have unmerged changes). +color.blame.repeatedLines:: + Use the customized color for the part of git-blame output that + is repeated meta information per line (such as commit id, + author name, date and timezone). Defaults to cyan. + color.ui:: This variable determines the default value for variables such as `color.diff` and `color.grep` that control the use of color |