Class: Avm::Git::Scms::Git::Branch
- Inherits:
-
Scms::Branch
- Object
- Scms::Branch
- Avm::Git::Scms::Git::Branch
- Defined in:
- lib/avm/git/scms/git/branch.rb
Instance Method Summary collapse
Instance Method Details
#head_commit ⇒ Avm::Git::Scms::Git::Commit
11 12 13 |
# File 'lib/avm/git/scms/git/branch.rb', line 11 def head_commit ::Avm::Git::Scms::Git::Commit.new(scm, eac_git_branch.head_commit) end |
#id ⇒ String
16 17 18 |
# File 'lib/avm/git/scms/git/branch.rb', line 16 def id eac_git_branch.name end |
#push(remote) ⇒ Object
21 22 23 |
# File 'lib/avm/git/scms/git/branch.rb', line 21 def push(remote) eac_git_branch.push(remote.eac_git_remote, force: true) end |