aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.css
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2009-09-07 14:40:00 +0200
committerJunio C Hamano <gitster@pobox.com>2009-09-07 14:53:56 -0700
commite4b48eaab724d9fd5941c6a683a34ee38a864897 (patch)
tree845221cfefd9cd97015ce0a4db752b37f31168db /gitweb/gitweb.css
parent6ea71fe7d36cf5b81c2100d97a822ecf0bc04746 (diff)
downloadgit-e4b48eaab724d9fd5941c6a683a34ee38a864897.tar.gz
git-e4b48eaab724d9fd5941c6a683a34ee38a864897.tar.xz
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.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 8f68fe309..d60bfc1f6 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 {