git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8bee516
)
fix broken commit dots
v0.1.0
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 18 Apr 2012 20:16:58 +0000
(22:16 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 18 Apr 2012 20:16:58 +0000
(22:16 +0200)
src/phorkie/Repository/Commit.php
patch
|
blob
|
history
diff --git
a/src/phorkie/Repository/Commit.php
b/src/phorkie/Repository/Commit.php
index 031d95ef743f9961a3c4083365240f292c79a9d2..7c66673167e6080de54c412007731061efc468ef 100644
(file)
--- a/
src/phorkie/Repository/Commit.php
+++ b/
src/phorkie/Repository/Commit.php
@@
-44,8
+44,8
@@
class Repository_Commit
$sum = $r + $g;
if ($sum > 7) {
$quot = ceil($sum / 7);
- $r = int($r / $quot);
- $g = int($g / $quot);
+ $r = int
val
($r / $quot);
+ $g = int
val
($g / $quot);
}
$string = str_repeat('g', $g) . str_repeat('r', $r) . str_repeat('n', 7 - $g - $r);