diff options
Diffstat (limited to 'lib/git/branches.rb')
-rw-r--r-- | lib/git/branches.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/git/branches.rb b/lib/git/branches.rb index 47d001a..60ab16b 100644 --- a/lib/git/branches.rb +++ b/lib/git/branches.rb @@ -41,5 +41,17 @@ module Git @branches[symbol.to_s] end + def to_s + out = '' + @branches.each do |k, b| + if b.current + out += "* " + b.to_s + "\n" + else + out += " " + b.to_s + "\n" + end + end + out + end + end end
\ No newline at end of file |