Pass the --aggressive flag to git-read-tree
authorCatalin Marinas <catalin.marinas@gmail.com>
Thu, 9 Mar 2006 21:53:54 +0000 (21:53 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 9 Mar 2006 21:54:38 +0000 (21:54 +0000)
This flags solves the file removals which consumes the most time when
resolving the three-way merge conflicts.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/git.py

index 351ebbd..8306c85 100644 (file)
@@ -493,7 +493,7 @@ def merge(base, head1, head2):
     local tree
     """
     refresh_index()
-    if __run('git-read-tree -u -m', [base, head1, head2]) != 0:
+    if __run('git-read-tree -u -m --aggressive', [base, head1, head2]) != 0:
         raise GitException, 'git-read-tree failed (local changes maybe?)'
 
     # this can fail if there are conflicts