joelmoss / strano

Capistrano and Github sittin' in a tree...
http://developwithstyle.com
MIT License
579 stars 70 forks source link

Branches list without prefixes #53

Open puffy opened 10 years ago

puffy commented 10 years ago

Strano use below code of formatting branch name:

branch = br.gsub(/\*/, '').strip.split(' ').first.split('/').last

Why it split first part of branch prefix? Prefixes can be useful in teams (e.g. username/branch_name) to identify owner of the branch...

In additional final splitted branches are not sorted making them difficult to find.