Class: Gitmine::LocalBranch

Inherits:
Branch
  • Object
show all
Defined in:
lib/gitmine/branch.rb

Instance Attribute Summary

Attributes inherited from Branch

#issue_id

Instance Method Summary collapse

Methods inherited from Branch

find, find_local, find_remote, #initialize, #local, local_branches, #remote, remote_branches

Constructor Details

This class inherits a constructor from Gitmine::Branch

Instance Method Details

#merge_to_masterObject



86
87
88
89
90
91
# File 'lib/gitmine/branch.rb', line 86

def merge_to_master
  Git.checkout("master")
  Git.pull
  Git.merge(self.name)
  Git.push
end

#nameObject



82
83
84
# File 'lib/gitmine/branch.rb', line 82

def name
  Branch.find_local(issue_id)
end