summaryrefslogtreecommitdiff
path: root/Documentation/git-ls-tree.txt
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-04-08 16:00:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-04-08 18:21:11 (GMT)
commitacd34fd5f60ab01e871dfa3a3bb8b81828ac181d (patch)
treea823a37ccf48be43c8684edd015fa54aab6197d5 /Documentation/git-ls-tree.txt
parent5e65dac9c88d02f569cc87cdf630ecb5a780c6a6 (diff)
downloadgit-acd34fd5f60ab01e871dfa3a3bb8b81828ac181d.zip
git-acd34fd5f60ab01e871dfa3a3bb8b81828ac181d.tar.gz
git-acd34fd5f60ab01e871dfa3a3bb8b81828ac181d.tar.bz2
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 f35a6d3bce7 (Teach core object handling functions about gitlinks, 2007-04-09). E.g. the discussion of --long added in f35a6d3bce7 (Teach core object handling functions about gitlinks, 2007-04-09) didn't explicitly mention them. But this documentation added in 455923e0a15 (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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-ls-tree.txt')
-rw-r--r--Documentation/git-ls-tree.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-ls-tree.txt b/Documentation/git-ls-tree.txt
index 8f31e2e..0240adb 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.