Method: Commits::CommitPatchService#initialize
- Defined in:
- app/services/commits/commit_patch_service.rb
#initialize(*args) ⇒ CommitPatchService
Requires:
-
project:
Projectto be committed into -
user:
Userthat will be the committer -
params:
-
branch_name:
Stringthe branch that will be committed into -
start_branch:
Stringthe branch that will be started from -
patches:
Gitlab::Git::Patches::Collectionthat contains the patches
-
12 13 14 15 16 |
# File 'app/services/commits/commit_patch_service.rb', line 12 def initialize(*args) super @patches = Gitlab::Git::Patches::Collection.new(Array(params[:patches])) end |