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

Re: [PATCH v3 1/2] blame: Describe default output format

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 1, 2021, 22:43 UTC
Message-ID
<xmqqfstk2woo.fsf@gitster.g>
In-Reply-To
<20211001113725.13354-2-bagasdotme@gmail.com>
Bagas Sanjaya <bagasdotme@gmail.com> writes:
Show 26 quoted lines
> While there is descriptions for porcelain and incremental output
> formats, the default format isn't described. Describe that format for
> the sake of completeness.
>
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
> ---
>  Documentation/git-blame.txt | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/Documentation/git-blame.txt b/Documentation/git-blame.txt
> index 3bf5d5d8b4..683f8ab0b0 100644
> --- a/Documentation/git-blame.txt
> +++ b/Documentation/git-blame.txt
> @@ -93,6 +93,19 @@ include::blame-options.txt[]
>  	is used for a caret to mark the boundary commit.
>  
>  
> +THE DEFAULT FORMAT
> +------------------
> +
> +When neither `--porcelain` nor `--incremental` option is specified,
> +`git blame` will output annotation for each line with:
> +
> +- abbreviated object name for the commit the line came from;
> +- author ident (by default author name and date unless `-s` or `-e` is
> +specified); and

It probably would become easier to read with a comma before "unless".

Other than that (and the downcasing of Describe in the title), looks good to me.

Thanks.
Show 6 quoted lines
> +- line number
> +
> +before the line contents.
> +
>  THE PORCELAIN FORMAT
>  --------------------
Previous: Bagas SanjayaNext: Bagas Sanjaya
Message 3 of 7 in “blame: documentation update”
  1. 0/2 blame: documentation updateBagas Sanjaya, Oct 1, 2021
  2. 1/2 blame: Describe default output formatBagas Sanjaya, Oct 1, 2021
  3. Junio C HamanoOct 1, 2021
  4. 2/2 blame: document --color-* optionsBagas Sanjaya, Oct 1, 2021
  5. Eric SunshineOct 1, 2021
  6. Bagas SanjayaOct 2, 2021
  7. Junio C HamanoOct 4, 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.