Class: Gitlab::Git::OperationService::BranchUpdate

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/git/operation_service.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#branch_createdObject Also known as: branch_created?

Returns the value of attribute branch_created

Returns:

  • (Object)

    the current value of branch_created


6
7
8
# File 'lib/gitlab/git/operation_service.rb', line 6

def branch_created
  @branch_created
end

#newrevObject

Returns the value of attribute newrev

Returns:

  • (Object)

    the current value of newrev


6
7
8
# File 'lib/gitlab/git/operation_service.rb', line 6

def newrev
  @newrev
end

#repo_createdObject Also known as: repo_created?

Returns the value of attribute repo_created

Returns:

  • (Object)

    the current value of repo_created


6
7
8
# File 'lib/gitlab/git/operation_service.rb', line 6

def repo_created
  @repo_created
end

Class Method Details

.from_gitaly(branch_update) ⇒ Object


10
11
12
13
14
15
16
17
18
# File 'lib/gitlab/git/operation_service.rb', line 10

def self.from_gitaly(branch_update)
  return if branch_update.nil?

  new(
    branch_update.commit_id,
    branch_update.repo_created,
    branch_update.branch_created
  )
end