Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-06-13 22:29:46 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-13 22:29:46 +0300
commit32fe7fff0c141784dcfcece405e8e1866c55a2a9 (patch)
tree9adc89e644b7f6ce3c4b41cf62e7fba8b36b3842 /Documentation
parentca9c063c1820a78e29306c7d54b4f840ea5db62e (diff)
parent4d28c4f75fc12e7795fb2c1db2caedb6d9648af8 (diff)
Merge branch 'zh/ls-files-format-atoms'
Some atoms that can be used in "--format=<format>" for "git ls-tree" were not supported by "git ls-files", even though they were relevant in the context of the latter. * zh/ls-files-format-atoms: ls-files: align format atoms with ls-tree
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-ls-files.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index 1abdd3c21c..1bc0328bb7 100644
--- a/Documentation/git-ls-files.txt
+++ b/Documentation/git-ls-files.txt
@@ -270,8 +270,14 @@ interpolated. The following "fieldname" are understood:
objectmode::
The mode of the file which is recorded in the index.
+objecttype::
+ The object type of the file which is recorded in the index.
objectname::
The name of the file which is recorded in the index.
+objectsize[:padded]::
+ The object size of the file which is recorded in the index
+ ("-" if the object is a `commit` or `tree`).
+ It also supports a padded format of size with "%(objectsize:padded)".
stage::
The stage of the file which is recorded in the index.
eolinfo:index::