diff options
author | Jakub Narebski <jnareb@gmail.com> | 2009-09-07 14:40:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-09-07 14:53:56 -0700 |
commit | e4b48eaab724d9fd5941c6a683a34ee38a864897 (patch) | |
tree | 845221cfefd9cd97015ce0a4db752b37f31168db /gitweb/gitweb.css | |
parent | 6ea71fe7d36cf5b81c2100d97a822ecf0bc04746 (diff) | |
download | git-e4b48eaab724d9fd5941c6a683a34ee38a864897.tar.gz |
gitweb: Add 'show-sizes' feature to show blob sizes in tree view
Add support for 'show-sizes' feature to show (in separate column,
between mode and filename) the size of blobs (files) in the 'tree'
view. It passes '-l' option to "git ls-tree" invocation.
For the 'tree' and 'commit' (submodule) entries, '-' is shown in place
of size; for generated '..' "up directory" entry nothing is shown.
The 'show-sizes' feature is enabled by default.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
-rw-r--r-- | gitweb/gitweb.css | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css index 8f68fe3091..d60bfc1f64 100644 --- a/gitweb/gitweb.css +++ b/gitweb/gitweb.css @@ -341,6 +341,12 @@ td.mode { font-family: monospace; } +/* format of (optional) objects size in 'tree' view */ +td.size { + font-family: monospace; + text-align: right; +} + /* styling of diffs (patchsets): commitdiff and blobdiff views */ div.diff.header, div.diff.extended_header { |