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
Léo-Paul Géneau
gitlab-ce
Commits
417a21a1
Commit
417a21a1
authored
Jun 22, 2018
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raw diffs are served from Gitaly
Closes
https://gitlab.com/gitlab-org/gitaly/issues/222
parent
348ad22d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
lib/gitlab/git/commit.rb
lib/gitlab/git/commit.rb
+3
-7
No files found.
lib/gitlab/git/commit.rb
View file @
417a21a1
...
@@ -381,15 +381,11 @@ module Gitlab
...
@@ -381,15 +381,11 @@ module Gitlab
# empty repo. See Repository#diff for keys allowed in the +options+
# empty repo. See Repository#diff for keys allowed in the +options+
# hash.
# hash.
def
diff_from_parent
(
options
=
{})
def
diff_from_parent
(
options
=
{})
Gitlab
::
GitalyClient
.
migrate
(
:commit_raw_diffs
)
do
|
is_enabled
|
if
is_enabled
@repository
.
gitaly_commit_client
.
diff_from_parent
(
self
,
options
)
@repository
.
gitaly_commit_client
.
diff_from_parent
(
self
,
options
)
else
rugged_diff_from_parent
(
options
)
end
end
end
end
# Not to be called directly, but right now its used for tests and in old
# migrations
def
rugged_diff_from_parent
(
options
=
{})
def
rugged_diff_from_parent
(
options
=
{})
options
||=
{}
options
||=
{}
break_rewrites
=
options
[
:break_rewrites
]
break_rewrites
=
options
[
:break_rewrites
]
...
...
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