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

Re: [PATCH v2 2/2] blame: document --color-* options

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 29, 2021, 19:15 UTC
Message-ID
<xmqq35pndwha.fsf@gitster.g>
In-Reply-To
<20210929124935.41917-3-bagasdotme@gmail.com>
Bagas Sanjaya <bagasdotme@gmail.com> writes:
Show 14 quoted lines
> Commit cdc2d5f11f1a (builtin/blame: dim uninteresting metadata lines,
> 2018-04-23) and 25d5f52901f0 (builtin/blame: highlight recently changed
> lines, 2018-04-23) introduce --color-lines and --color-by-age options to
> git blame, respectively. While both options are mentioned in usage help,
> they aren't documented in git-blame(1). Document them.
>
> Co-authored-by: Dr. Matthias St. Pierre <m.st.pierre@ncp-e.com>
> Signed-off-by: Dr. Matthias St. Pierre <m.st.pierre@ncp-e.com>
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
> ---
>  Documentation/blame-options.txt | 12 ++++++++++++
>  Documentation/config/color.txt  | 12 ++++++------
>  Documentation/git-blame.txt     |  4 ++--
>  3 files changed, 20 insertions(+), 8 deletions(-)
Nicely written.
> +--color-lines::
> +	Color lines differently, if they belong to the same commit as the preceding line.

Is "belong" the right verb? I view these lines "come from" their originating commits, so "they belong to" -> "they come from", perhaps.

Show 5 quoted lines
>  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
Ditto.
Thanks.
Previous: Bagas Sanjaya
Message 5 of 5 in “blame: documentation update”
  1. 0/2 blame: documentation updateBagas Sanjaya, Sep 29, 2021
  2. 1/2 blame: Describe default output formatBagas Sanjaya, Sep 29, 2021
  3. Junio C HamanoSep 29, 2021
  4. 2/2 blame: document --color-* optionsBagas Sanjaya, Sep 29, 2021
  5. Junio C HamanoSep 29, 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.