public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/dysinger/gitnub.git
Search Repo:
Changed the order of the branches
dysinger (author)
Thu May 01 13:34:24 -0700 2008
commit  7c065351cc7b93f4db4697254926d8b3f369a27c
tree    2b207320b6fb4c88d67eca197bdafd97e9dfccb2
parent  d380c947f09b85a3e3e5cb08cb5121341f2f2f74
...
242
243
244
245
246
 
 
 
 
 
 
247
248
249
...
242
243
244
 
 
245
246
247
248
249
250
251
252
253
0
@@ -242,8 +242,12 @@
0
   
0
   def setup_branches_menu
0
     @branch_select.removeAllItems
0
- @repo.branches.each do |branch|
0
- @branch_select.addItemWithTitle(branch.name)
0
+ refs = [
0
+ @repo.heads.sort {|x,y| y = "master" ? +1 : y <=> x },
0
+ @repo.remotes,
0
+ @repo.tags,
0
+ ].flatten.each do |ref|
0
+ @branch_select.addItemWithTitle(ref.name)
0
     end
0
     @branch_select.selectItemWithTitle(@branch)
0
   end

Comments

    No one has commented yet.