diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-05-30 14:56:36 +0300 |
---|---|---|
committer | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-05-30 14:56:36 +0300 |
commit | 9f402b412762be4ca63cb3b5b3f458dd60592b28 (patch) | |
tree | e4e5c506b8c550927514759747075fdd27f60200 | |
parent | 75500d589ddd8a0e0bc3e45edb519a979c986fa6 (diff) | |
parent | 92699a4ab7f871def90acd6627d5b3aa1d37cf6c (diff) |
Merge branch '1141-rewrite-commit-diff' into 'master'
Fix similarity bug in Diff::CommitDiff
Closes #1141
See merge request gitlab-org/gitaly!727
-rw-r--r-- | changelogs/unreleased/1141-rewrite-commit-diff.yml | 5 | ||||
-rw-r--r-- | internal/service/diff/commit.go | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/1141-rewrite-commit-diff.yml b/changelogs/unreleased/1141-rewrite-commit-diff.yml new file mode 100644 index 000000000..b73871819 --- /dev/null +++ b/changelogs/unreleased/1141-rewrite-commit-diff.yml @@ -0,0 +1,5 @@ +--- +title: Fix rename similarity in CommitDiff +merge_request: 727 +author: +type: fixed diff --git a/internal/service/diff/commit.go b/internal/service/diff/commit.go index 7b5ff8d71..94a310d37 100644 --- a/internal/service/diff/commit.go +++ b/internal/service/diff/commit.go @@ -41,7 +41,7 @@ func (s *server) CommitDiff(in *pb.CommitDiffRequest, stream pb.DiffService_Comm "--raw", "--abbrev=40", "--full-index", - "--find-renames", + "--find-renames=30%", } if ignoreWhitespaceChange { cmdArgs = append(cmdArgs, "--ignore-space-change") |