@@ -136,5 +136,17 @@ take effect.
option. An empty file name, `""`, will clear the list of revs from
previously processed files.
+--color-lines::
+ Color lines differently, if they belong to the same commit as the preceding line.
+ This facilitates distinguishing code blocks introduced by different commits.
+ The color defaults to cyan and be adjusted using the `color.blame.repeatedLines`
+ config option. Only the line annotation (see "The Default Format" section)
+ is colored.
+
+--color-by-age::
+ Color lines depending on the age of the line. The `color.blame.highlightRecent`
+ config option controls what color is used for which range of age. Only the
+ line annotation (see "The Default Format" section) is colored.
+
-h::
Show help message.
@@ -9,8 +9,8 @@ color.advice.hint::
Use customized color for hints.
color.blame.highlightRecent::
- This can be used to color the metadata of a blame line depending
- on age of the line.
+ Used to color line annotations differently depending on the age of the commit
+ (`git blame --color-by-age`).
+
This setting should be set to a comma-separated list of color and date settings,
starting and ending with a color, the dates should be set from oldest to newest.
@@ -20,15 +20,15 @@ before the given timestamp, overwriting older timestamped colors.
Instead of an absolute timestamp relative timestamps work as well, e.g.
2.weeks.ago is valid to address anything older than 2 weeks.
+
-It defaults to 'blue,12 month ago,white,1 month ago,red', which colors
+It defaults to `blue,12 month ago,white,1 month ago,red`, which colors
everything older than one year blue, recent changes between one month and
one year old are kept white, and lines introduced within the last month are
colored red.
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.
+ Use the specified color to colorize line annotations, if they belong to the
+ same commit as the preceding line (`git blame --color-lines`). Defaults to
+ cyan.
color.branch::
A boolean to enable/disable color in the output of
@@ -11,8 +11,8 @@ SYNOPSIS
'git blame' [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-e] [-p] [-w] [--incremental]
[-L <range>] [-S <revs-file>] [-M] [-C] [-C] [-C] [--since=<date>]
[--ignore-rev <rev>] [--ignore-revs-file <file>]
- [--progress] [--abbrev=<n>] [<rev> | --contents <file> | --reverse <rev>..<rev>]
- [--] <file>
+ [--color-lines] [--color-by-age] [--progress] [--abbrev=<n>]
+ [<rev> | --contents <file> | --reverse <rev>..<rev>] [--] <file>
DESCRIPTION
-----------