lib/git-up.rb in git-up-0.5.11 vs lib/git-up.rb in git-up-0.5.12
- old
+ new
@@ -95,10 +95,15 @@
col_width = branches.map { |b| b.name.length }.max + 1
branches.each do |branch|
remote = remote_map[branch.name]
- print branch.name.ljust(col_width)
+ curbranch = branch.name.ljust(col_width)
+ if branch.name == repo.head.name
+ print curbranch.bold
+ else
+ print curbranch
+ end
if remote.commit.sha == branch.commit.sha
puts "up to date".green
next
end