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

[PATCH] git config doc: fix recent ASCIIDOC formatting regresison

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 19, 2021, 12:31 UTC
Message-ID
<patch-1.1-36700e581d2-20211019T123057Z-avarab@gmail.com>
In-Reply-To
<20211008091614.732584-3-bagasdotme@gmail.com>

Fix a regression in 8c328561332 (blame: document --color-* options, 2021-10-08), which added an extra newline before the "+" syntax.

The "Documentation/doc-diff HEAD~ HEAD" output with this applied is:
    [...]
    @@ -1815,13 +1815,13 @@ CONFIGURATION FILE
                specified colors if the line was introduced 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.
    +           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
    -       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.
    +           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 specified color to colorize line annotations for git blame
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 Documentation/config/color.txt | 2 --
 1 file changed, 2 deletions(-)
diff --git a/Documentation/config/color.txt b/Documentation/config/color.txt
index dd2d2e0d84e..6e817f60476 100644
--- a/Documentation/config/color.txt
+++ b/Documentation/config/color.txt
@@ -17,11 +17,9 @@ date settings, starting and ending with a color, the dates should be
 set from oldest to newest. The metadata will be colored with the
 specified colors if the line was introduced 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 everything older than one year blue, recent changes between
-- 
2.33.1.1338.g20da966911a
Previous: Bagas SanjayaNext: Jeff King
Message 4 of 7 in “blame: documentation update”
  1. 0/2 blame: documentation updateBagas Sanjaya, Oct 8, 2021
  2. 1/2 blame: describe default output formatBagas Sanjaya, Oct 8, 2021
  3. 2/2 blame: document --color-* optionsBagas Sanjaya, Oct 8, 2021
  4. git config doc: fix recent ASCIIDOC formatting regresisonÆvar Arnfjörð Bjarmason, Oct 19, 2021
  5. Jeff KingOct 19, 2021
  6. Junio C HamanoOct 20, 2021
  7. Junio C HamanoOct 8, 2021

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.