Class: Jiragit::Git::Branch
- Inherits:
-
Object
- Object
- Jiragit::Git::Branch
- Defined in:
- lib/jiragit/git/branch.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#commit ⇒ Object
Returns the value of attribute commit.
7 8 9 |
# File 'lib/jiragit/git/branch.rb', line 7 def commit @commit end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/jiragit/git/branch.rb', line 7 def name @name end |
Instance Method Details
#committer ⇒ Object
17 18 19 |
# File 'lib/jiragit/git/branch.rb', line 17 def committer @committer ||= Jiragit::Git.committer(commit) end |
#date ⇒ Object
13 14 15 |
# File 'lib/jiragit/git/branch.rb', line 13 def date @date ||= Jiragit::Git.(commit) end |
#short_commit ⇒ Object
21 22 23 |
# File 'lib/jiragit/git/branch.rb', line 21 def short_commit commit[0,6] end |
#short_name ⇒ Object
9 10 11 |
# File 'lib/jiragit/git/branch.rb', line 9 def short_name @name.gsub(/refs\/heads\//,'') end |