Skip to content

Commit acd34fd

Browse files
avargitster
authored andcommitted
ls-tree doc: document interaction with submodules
The ls-tree documentation had never been updated after it learned to interact with submodules to explicitly mention them. The initial support was added in f35a6d3 (Teach core object handling functions about gitlinks, 2007-04-09). E.g. the discussion of --long added in f35a6d3 (Teach core object handling functions about gitlinks, 2007-04-09) didn't explicitly mention them. But this documentation added in 455923e (ls-tree: introduce "--format" option, 2022-03-23) had no such excuse, and was actively misleading by providing an exhaustive but incomplete list of object types we'd emit. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5e65dac commit acd34fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-ls-tree.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ names can be used:
151151
objectmode::
152152
The mode of the object.
153153
objecttype::
154-
The type of the object (`blob` or `tree`).
154+
The type of the object (`commit`, `blob` or `tree`).
155155
objectname::
156156
The name of the object.
157157
objectsize[:padded]::
158-
The size of the object ("-" if it's a tree).
158+
The size of a `blob` object ("-" if it's a `commit` or `tree`).
159159
It also supports a padded format of size with "%(objectsize:padded)".
160160
path::
161161
The pathname of the object.

0 commit comments

Comments
 (0)