dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76635cb
)
Fast short-circuit for diffs between identical strings
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 26 Mar 2009 13:29:38 +0000
(13:29 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 26 Mar 2009 13:29:38 +0000
(13:29 +0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
0807f0b
..
9afb3ad
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-1393,6
+1393,10
@@
function wfMerge( $old, $mine, $yours, &$result ){
* @return string Unified diff of $before and $after
*/
function wfDiff( $before, $after, $params = '-u' ) {
+ if ($before == $after) {
+ return '';
+ }
+
global $wgDiff;
# This check may also protect against code injection in