forked from gitgitgadget/git
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ls-files: add %(objectsize) atom to format option
Sometimes users may want to align the feature of `git ls-files --format` with that of `git ls-tree --format`, but the %(objectsize) and %(objectsize:padded) are missing in the format option of git ls-files compared to git ls-tree. Therefore, the %(objecttsize) atom is added to the format option of git ls-files, which can be used to obtain 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). Signed-off-by: ZheNing Hu <adlternative@gmail.com>
- Loading branch information
1 parent
3f88844
commit 95f1d71
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters