aboutsummaryrefslogtreecommitdiffstats
path: root/style.css
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-04-30 11:54:33 +0200
committerHiltjo Posthuma <[email protected]>2016-04-30 12:47:00 +0200
commit914880f31b04222fa2815f4f35543b72f881d5e4 (patch)
treea8b10d66a365f03cccd374f80f0c9840b9a877ab /style.css
parent0bc47da0f7b66614cdf499755ceca1dc13ff91cd (diff)
downloadstagit-914880f31b04222fa2815f4f35543b72f881d5e4.tar.gz
stagit-914880f31b04222fa2815f4f35543b72f881d5e4.zip
optimization: read stats once and remember it
for an initial run and new commits this speeds stagit up a bit: on an initial run of sbase goes from about 4 seconds to 2.8 on my machine. now we can't use statsbuf, so create the stats string ourselves, while at it color the + and - using a style (can be disabled for the color-haters out there ;)).
Diffstat (limited to 'style.css')
-rw-r--r--style.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/style.css b/style.css
index 8cf93d0..e718893 100644
--- a/style.css
+++ b/style.css
@@ -79,10 +79,12 @@ pre a.h {
color: #00a;
}
+span.i,
pre a.i {
color: #070;
}
+span.d,
pre a.d {
color: #e00;
}