git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] blame: document --color-{lines,by-age} config

From
Robert Estelle via GitGitGadget <gitgitgadget@gmail.com>
Date
Feb 2, 2023, 19:16 UTC
Message-ID
<6b0bf073cf0e06e4cfe51f4c10f632344c163921.1675365406.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1449.git.git.1675365406.gitgitgadget@gmail.com>
From: Robert Estelle <robertestelle@gmail.com>

These flags correspond to specific values of the `blame.coloring` config option. This adds a small note mentioning this correspondence.

Signed-off-by: Robert Estelle <robertestelle@gmail.com>
---
 Documentation/blame-options.txt | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/Documentation/blame-options.txt b/Documentation/blame-options.txt
index 9a663535f44..170016c941e 100644
--- a/Documentation/blame-options.txt
+++ b/Documentation/blame-options.txt
@@ -141,11 +141,15 @@ take effect.
 	the same commit as the preceding line. This makes it easier to distinguish
 	code blocks introduced by different commits. The color defaults to cyan and
 	can be adjusted using the `color.blame.repeatedLines` config option.
+	It corresponds to the value `repeatedLines` in the `blame.coloring`
+	configuration setting in linkgit:git-config[1] .
 
 --color-by-age::
 	Color line annotations depending on the age of the line in the default format.
 	The `color.blame.highlightRecent` config option controls what color is used for
 	each range of age.
+	It corresponds to the value `highlightRecent` in the `blame.coloring`
+	configuration setting in linkgit:git-config[1] .
 
 -h::
 	Show help message.
-- 
gitgitgadget
Previous: Robert Estelle via GitGitGadgetNext: Robert Estelle via GitGitGadget
Message 3 of 4 in “blame: allow blame.coloring to specify both --color-lines and --color-by-age”
  1. 0/3 blame: allow blame.coloring to specify both --color-lines and --color-by-ageRobert Estelle via GitGitGadget, Feb 2, 2023
  2. 1/3 blame: add test for --color-lines + --color-by-ageRobert Estelle via GitGitGadget, Feb 2, 2023
  3. 2/3 blame: document --color-{lines,by-age} configRobert Estelle via GitGitGadget, Feb 2, 2023
  4. 3/3 blame: support multiple values in blame.coloringRobert Estelle via GitGitGadget, Feb 2, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.