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:
Select active branch when starting up
dustin (author)
Wed Apr 23 00:12:01 -0700 2008
Caged (committer)
Wed Apr 23 00:12:01 -0700 2008
commit  f7b3f6bb486c211ed4419560d52125b14b979087
tree    cf0bd79b8f9d41a601f6fa542baafa99fe7cb014
parent  a033963b118ffa6e81a908e5e773801aa4199f04
...
36
37
38
39
 
 
40
41
42
...
233
234
235
 
 
 
 
 
236
237
238
...
36
37
38
 
39
40
41
42
43
...
234
235
236
237
238
239
240
241
242
243
244
0
@@ -36,7 +36,8 @@
0
       hash[email] = NSImage.imageNamed(NSImageNameUser)
0
     end
0
     
0
- if(fetch_git_repository)
0
+ if fetch_git_repository
0
+ fetch_git_branch
0
       setup_commit_detail_view
0
       fetch_commits_for @branch, @offset
0
       setup_branches_menu
0
@@ -233,6 +234,11 @@
0
     rescue Grit::InvalidGitRepositoryError
0
       return false
0
     end
0
+ end
0
+
0
+ def fetch_git_branch
0
+ head = @repo.head || @repo.heads.first
0
+ @branch = head.name.to_sym
0
   end
0
   
0
   def fetch_commits_for(branch, quanity, offset = 0)

Comments

    No one has commented yet.