Module: Semmy::Scm::Git

Extended by:
Git
Included in:
Git
Defined in:
lib/semmy/scm/git.rb

Instance Method Summary collapse

Instance Method Details

#attach_git_head(_branch) ⇒ Object



24
25
# File 'lib/semmy/scm/git.rb', line 24

def attach_git_head(_branch)
end

#commit_all(message, _branch) ⇒ Object



12
13
14
# File 'lib/semmy/scm/git.rb', line 12

def commit_all(message, _branch)
  repository.commit_all(message)
end

#create_branch(name, _base) ⇒ Object



16
17
18
# File 'lib/semmy/scm/git.rb', line 16

def create_branch(name, _base)
  repository.branch(name).create
end

#current_branchObject



8
9
10
# File 'lib/semmy/scm/git.rb', line 8

def current_branch
  repository.current_branch
end

#push(remote, name) ⇒ Object



20
21
22
# File 'lib/semmy/scm/git.rb', line 20

def push(remote, name)
  repository.push(remote, name)
end