BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6d01535e
Commit
6d01535e
authored
Jun 07, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'reenable-gitaly-commit-raw-diffs' into 'master'
Re-enable Gitaly commit_raw_diffs migration See merge request !11970
parents
35614e43
204db056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
commit.rb
app/models/commit.rb
+5
-6
No files found.
app/models/commit.rb
View file @
6d01535e
...
...
@@ -326,12 +326,11 @@ class Commit
end
def
raw_diffs
(
*
args
)
# Uncomment when https://gitlab.com/gitlab-org/gitaly/merge_requests/170 is merged
# if Gitlab::GitalyClient.feature_enabled?(:commit_raw_diffs)
# Gitlab::GitalyClient::Commit.new(project.repository).diff_from_parent(self, *args)
# else
raw
.
diffs
(
*
args
)
# end
if
Gitlab
::
GitalyClient
.
feature_enabled?
(
:commit_raw_diffs
)
Gitlab
::
GitalyClient
::
Commit
.
new
(
project
.
repository
).
diff_from_parent
(
self
,
*
args
)
else
raw
.
diffs
(
*
args
)
end
end
def
raw_deltas
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment