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

Re: [PATCH] ls-tree doc: document interaction with submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2022, 18:20 UTC
Message-ID
<xmqqpmlrmo7k.fsf@gitster.g>
In-Reply-To
<patch-1.1-183b9639ae7-20220408T155704Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 22 quoted lines
> Thanks, perhaps this is also worth taking before the release, it's a
> rather trivial inaccuracy in the docs, but something that's new since
> v2.36.0.
> ...
> diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
> index 8f31e2ee9d4..0240adb8eec 100644
> --- a/Documentation/git-ls-tree.txt
> +++ b/Documentation/git-ls-tree.txt
> @@ -151,11 +151,11 @@ names can be used:
>  objectmode::
>  	The mode of the object.
>  objecttype::
> -	The type of the object (`blob` or `tree`).
> +	The type of the object (`commit`, `blob` or `tree`).
>  objectname::
>  	The name of the object.
>  objectsize[:padded]::
> -	The size of the object ("-" if it's a tree).
> +	The size of a `blob` object ("-" if it's a `commit` or `tree`).
>  	It also supports a padded format of size with "%(objectsize:padded)".
>  path::
>  	The pathname of the object.

Makes sense. Indeed we should have updated it when we added gitlinks to trees.

Will queue.
Previous: Ævar Arnfjörð Bjarmason
Message 4 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.