Skip to content

Commit

Permalink
Detect copies without 100% similarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Jun 27, 2018
1 parent e47124a commit 2446aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinnabar/helper.py
Expand Up @@ -204,7 +204,7 @@ def rev_list(self, *args):

@classmethod
def diff_tree(self, rev1, rev2, detect_copy=False):
extra = () if not detect_copy else ('-C100%',)
extra = () if not detect_copy else ('-C50%',)
extra = extra + ('--ignore-submodules=dirty', '--')
with self.query('diff-tree', rev1, rev2, *extra) as stdout:
data = self._read_data(stdout)
Expand Down

0 comments on commit 2446aa2

Please sign in to comment.