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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6e6c38f1
Commit
6e6c38f1
authored
Jun 07, 2018
by
Francisco Javier López
Committed by
Douwe Maan
Jun 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving rev-list lfs options to Lfschanges
parent
bb31635b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
lib/gitlab/git/lfs_changes.rb
lib/gitlab/git/lfs_changes.rb
+3
-1
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+5
-1
lib/gitlab/git/rev_list.rb
lib/gitlab/git/rev_list.rb
+7
-4
No files found.
lib/gitlab/git/lfs_changes.rb
View file @
6e6c38f1
...
...
@@ -39,7 +39,9 @@ module Gitlab
end
def
git_all_pointers
rev_list
.
all_objects
(
require_path:
true
)
do
|
object_ids
|
params
=
{
options:
[
"--filter=blob:limit=
#{
Gitlab
::
Git
::
Blob
::
LFS_POINTER_MAX_SIZE
}
"
],
require_path:
true
}
rev_list
.
all_objects
(
params
)
do
|
object_ids
|
Gitlab
::
Git
::
Blob
.
batch_lfs_pointers
(
@repository
,
object_ids
)
end
end
...
...
lib/gitlab/git/repository.rb
View file @
6e6c38f1
...
...
@@ -1557,7 +1557,7 @@ module Gitlab
end
end
def
rev_list
(
including:
[],
excluding:
[],
objects:
false
,
&
block
)
def
rev_list
(
including:
[],
excluding:
[],
o
ptions:
[],
o
bjects:
false
,
&
block
)
args
=
[
'rev-list'
]
args
.
push
(
*
rev_list_param
(
including
))
...
...
@@ -1570,6 +1570,10 @@ module Gitlab
args
.
push
(
'--objects'
)
if
objects
if
options
.
any?
args
.
push
(
*
options
)
end
run_git!
(
args
,
lazy_block:
block
)
end
...
...
lib/gitlab/git/rev_list.rb
View file @
6e6c38f1
...
...
@@ -37,8 +37,11 @@ module Gitlab
get_objects
(
opts
,
&
lazy_block
)
end
def
all_objects
(
require_path:
nil
,
&
lazy_block
)
get_objects
(
including: :all
,
require_path:
require_path
,
&
lazy_block
)
def
all_objects
(
options:
[],
require_path:
nil
,
&
lazy_block
)
get_objects
(
including: :all
,
options:
options
,
require_path:
require_path
,
&
lazy_block
)
end
# This methods returns an array of missed references
...
...
@@ -54,8 +57,8 @@ module Gitlab
repository
.
rev_list
(
args
).
split
(
"
\n
"
)
end
def
get_objects
(
including:
[],
excluding:
[],
require_path:
nil
)
opts
=
{
including:
including
,
excluding:
excluding
,
objects:
true
}
def
get_objects
(
including:
[],
excluding:
[],
options:
[],
require_path:
nil
)
opts
=
{
including:
including
,
excluding:
excluding
,
o
ptions:
options
,
o
bjects:
true
}
repository
.
rev_list
(
opts
)
do
|
lazy_output
|
objects
=
objects_from_output
(
lazy_output
,
require_path:
require_path
)
...
...
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