Skip to content

Commit 47e5be8

Browse files
committed
No need to handle indentation specially for lock
1 parent 1bbb0be commit 47e5be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

merge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ function merge($ancestor, $ours, $theirs) {
181181
return implode("\n", $parts);
182182
}, $merged);
183183

184-
// fix the indentation per the user's preference, except for the lock
185-
if (!$isLock && $indentation !== $defaultIndentation) {
184+
// fix the indentation per the user's preference
185+
if ($indentation !== $defaultIndentation) {
186186
$merged = preg_replace_callback("/^(?:{$defaultIndentation})+/m", function($matches) use ($indentation) {
187187
return str_repeat($indentation, strlen($matches[0]) / 4);
188188
}, $merged);

0 commit comments

Comments
 (0)