Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
204db056
Commit
204db056
authored
Jun 07, 2017
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enable Gitaly commit_raw_diffs migration
parent
6ee216c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
app/models/commit.rb
app/models/commit.rb
+5
-6
No files found.
app/models/commit.rb
View file @
204db056
...
@@ -326,12 +326,11 @@ class Commit
...
@@ -326,12 +326,11 @@ class Commit
end
end
def
raw_diffs
(
*
args
)
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
)
# if Gitlab::GitalyClient.feature_enabled?(:commit_raw_diffs)
Gitlab
::
GitalyClient
::
Commit
.
new
(
project
.
repository
).
diff_from_parent
(
self
,
*
args
)
# Gitlab::GitalyClient::Commit.new(project.repository).diff_from_parent(self, *args)
else
# else
raw
.
diffs
(
*
args
)
raw
.
diffs
(
*
args
)
#
end
end
end
end
def
raw_deltas
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