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

Re: [PATCH] git-ls-tree.txt: fix the name of "%(objectsize:padded)"

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 7, 2022, 17:11 UTC
Message-ID
<xmqq8rsgu8cw.fsf@gitster.g>
In-Reply-To
<20220407155231.2528221-1-martin.agren@gmail.com>
Martin Ågren <martin.agren@gmail.com> writes:
Show 14 quoted lines
> Commit 455923e0a1 ("ls-tree: introduce "--format" option", 2022-03-23)
> introduced `--format` and the various placeholders it can take, such as
> %(objectname) and %(objectsize).
>
> At some point when that patch was being developed, those placeholders
> had shorter names, e.g., %(name) and %(size), which can be seen in the
> commit message of 455923e0a1. One instance of "%(size:padded)" also
> managed to enter the documentation in the final version of the patch.
> Correct it to "%(objectsize:padded)".
>
> Signed-off-by: Martin Ågren <martin.agren@gmail.com>
> ---
>  Documentation/git-ls-tree.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Thanks.
Show 12 quoted lines
> diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
> index 43aebb9938..8f31e2ee9d 100644
> --- a/Documentation/git-ls-tree.txt
> +++ b/Documentation/git-ls-tree.txt
> @@ -156,7 +156,7 @@ objectname::
>  	The name of the object.
>  objectsize[:padded]::
>  	The size of the object ("-" if it's a tree).
> -	It also supports a padded format of size with "%(size:padded)".
> +	It also supports a padded format of size with "%(objectsize:padded)".
>  path::
>  	The pathname of the object.
Previous: Martin ÅgrenNext: Ævar Arnfjörð Bjarmason
Message 2 of 4 in “git-ls-tree.txt: fix the name of "%(objectsize:padded)"”
  1. git-ls-tree.txt: fix the name of "%(objectsize:padded)"Martin Ågren, Apr 7, 2022
  2. Junio C HamanoApr 7, 2022
  3. ls-tree doc: document interaction with submodulesÆvar Arnfjörð Bjarmason, Apr 8, 2022
  4. Junio C HamanoApr 8, 2022

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.