author | Jakub Narebski <jnareb@gmail.com> | |
Sat, 19 May 2007 20:08:11 +0000 (22:08 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 21 May 2007 04:43:46 +0000 (21:43 -0700) | ||
commit | a5bbda8b7b7f25f6caaa9f940e455e702f39766e | |
tree | a8e706854901a63abf0d914acf309e24119fddf7 | tree | snapshot |
parent | 93d496a560cdcd4f72c8dee1b0b2efa324e1c3bb | commit | diff |
Add an option to git-ls-tree to display also the size of blob
Add -l/--long option to git-ls-tree command, which displays
object size of a blob entry. Object size is placed after
object id (left-justified with minimum width of 7 characters).
For non-blob entries `-' is used.
Rationale: for non-blob entries size of an object has no much
meaning, and is not very interesting. Moreover, in planned
pack v4 tree objects would be constructed on demand, so tree
size would need to be calculated.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Add -l/--long option to git-ls-tree command, which displays
object size of a blob entry. Object size is placed after
object id (left-justified with minimum width of 7 characters).
For non-blob entries `-' is used.
Rationale: for non-blob entries size of an object has no much
meaning, and is not very interesting. Moreover, in planned
pack v4 tree objects would be constructed on demand, so tree
size would need to be calculated.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-ls-tree.txt | diff | blob | history | |
builtin-ls-tree.c | diff | blob | history |