Skip to content

Commit 5e65dac

Browse files
Martin Ågrengitster
authored andcommitted
git-ls-tree.txt: fix the name of "%(objectsize:padded)"
Commit 455923e ("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 455923e. 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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 350296c commit 5e65dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-ls-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ objectname::
156156
The name of the object.
157157
objectsize[:padded]::
158158
The size of the object ("-" if it's a tree).
159-
It also supports a padded format of size with "%(size:padded)".
159+
It also supports a padded format of size with "%(objectsize:padded)".
160160
path::
161161
The pathname of the object.
162162

0 commit comments

Comments
 (0)