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
ffb1c65b
Commit
ffb1c65b
authored
Mar 15, 2018
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Lfs::FileModificationHandler to Lfs::FileTransformer
parent
842f42f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/services/files/create_service.rb
app/services/files/create_service.rb
+1
-1
app/services/lfs/file_transformer.rb
app/services/lfs/file_transformer.rb
+1
-1
No files found.
app/services/files/create_service.rb
View file @
ffb1c65b
module
Files
module
Files
class
CreateService
<
Files
::
BaseService
class
CreateService
<
Files
::
BaseService
def
create_commit!
def
create_commit!
handler
=
Lfs
::
File
ModificationHandl
er
.
new
(
project
,
@branch_name
)
handler
=
Lfs
::
File
Transform
er
.
new
(
project
,
@branch_name
)
handler
.
new_file
(
@file_path
,
@file_content
)
do
|
content_or_lfs_pointer
|
handler
.
new_file
(
@file_path
,
@file_content
)
do
|
content_or_lfs_pointer
|
create_transformed_commit
(
content_or_lfs_pointer
)
create_transformed_commit
(
content_or_lfs_pointer
)
...
...
app/services/lfs/file_
modification_handl
er.rb
→
app/services/lfs/file_
transform
er.rb
View file @
ffb1c65b
module
Lfs
module
Lfs
class
File
ModificationHandl
er
class
File
Transform
er
attr_reader
:project
,
:branch_name
attr_reader
:project
,
:branch_name
delegate
:repository
,
to: :project
delegate
:repository
,
to: :project
...
...
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