https://src.bluestatic.org
/
viewsvn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ae8883
)
Fix for advanced add display in diff
author
Robert Sesek <rsesek@bluestatic.org>
Sun, 28 Aug 2005 06:11:43 +0000
(06:11 +0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 28 Aug 2005 06:11:43 +0000
(06:11 +0000)
includes/svnlib.php
patch
|
blob
|
history
diff --git
a/includes/svnlib.php
b/includes/svnlib.php
index f7f916896c57c7708c99b5adb45430285ec09f13..8ba1b9aa5df7b97a03c1408803dbb2f0844b6cad 100644
(file)
--- a/
includes/svnlib.php
+++ b/
includes/svnlib.php
@@
-571,7
+571,8
@@
class SVNDiff
$removed = substr($lastcontent, $delta['start'], $diff);
$this->diff["$chunk"][ count($this->diff["$chunk"]) - 2 ]['line'] = substr_replace($lastcontent, '{@--}' . $removed . '{/@--}', $delta['start'], $diff);
}
- else
+
+ if (strlen($content) > $delta['end'] - $diff)
{
$added = substr($content, $delta['start'], $diff);
$content = substr_replace($content, '{@++}' . $added . '{/@++}', $delta['start'], $diff);