/
uis
/
git
/
x
/
uis
/
u
/
fanf2
/
git-graph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
eed91ed
)
Print per-character scale to 1 decimal place
author
Tony Finch
<dot@dotat.at>
Fri, 27 Mar 2015 15:36:26 +0000
(15:36 +0000)
committer
Tony Finch
<dot@dotat.at>
Fri, 27 Mar 2015 15:36:26 +0000
(15:36 +0000)
git-graph
patch
|
blob
|
blame
|
history
diff --git
a/git-graph
b/git-graph
index
b5254dd
..
c74d234
100755
(executable)
--- a/
git-graph
+++ b/
git-graph
@@
-97,7
+97,7
@@
for my $date ($today - $height .. $today) {
"+" x ($add && 1 + $add * $scale),
"-" x ($del && 1 + $del * $scale);
}
"+" x ($add && 1 + $add * $scale),
"-" x ($del && 1 + $del * $scale);
}
-printf " \e[33m#\e[0m <- %-8
d
%s %8d ->\n",
+printf " \e[33m#\e[0m <- %-8
.1f
%s %8d ->\n",
1/$scale,
" " x ($width - 25),
$max;
1/$scale,
" " x ($width - 25),
$max;