public
Rubygem
Description: The official `github` command line helper for simplifying your GitHub experience.
Homepage: http://github.com
Clone URL: git://github.com/defunkt/github-gem.git
Search Repo:
Sort the remotes given with `github info`

origin is listed first, all other remotes listed alphabetically
kballard (author)
Tue Jul 01 01:22:04 -0700 2008
commit  83ee1d71c024988f510a5be7b0ce397c1524e2d2
tree    dad89d8567b709cf9dcbedd28fe2089c3ffe4f1a
parent  33354f27bd4d88eb1922f767e8c61b2691827edc
...
33
34
35
36
 
37
38
39
...
33
34
35
 
36
37
38
39
0
@@ -33,7 +33,7 @@ command :info do
0
   puts "== Info for #{helper.project}"
0
   puts "You are #{helper.owner}"
0
   puts "Currently tracking:"
0
- helper.tracking.each do |(name,user_or_url)|
0
+ helper.tracking.sort { |(a,),(b,)| a == :origin ? -1 : b == :origin ? 1 : a.to_s <=> b.to_s }.each do |(name,user_or_url)|
0
     puts " - #{user_or_url} (as #{name})"
0
   end
0
 end

Comments

    No one has commented yet.