GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

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/auser/gitnub.git
kballard (author)
Fri Mar 21 15:39:43 -0700 2008
commit  e8a22357b99d65c60c82a704f5918f145ba9e5d1
tree    3189ace458c5f4436c55679136e89a0e16ba9d66
parent  37c28f30f047da557551c379fdca95f0b8dcde94
gitnub / InfoWindowController.rb
100644 28 lines (23 sloc) 0.62 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# InfoWindowController.rb
# GitNub
#
# Created by Justin Palmer on 3/6/08.
# Copyright (c) 2008 Active Reload, LLC. All rights reserved.
#
 
require 'osx/cocoa'
 
class InfoWindowController < OSX::NSWindowController
  ib_outlet :push_url
  ib_outlet :clone_url
  ib_outlet :commits_count
  def init_with_repository(repository)
    @repo = repository
    initWithWindowNibName("Info")
    return self
  end
  
  def awakeFromNib
    clone_url = @repo.git.config({}, "--get", "remote.origin.url").gsub("\n", '')
    @clone_url.stringValue = clone_url
    
    @commits_count.stringValue = @repo.commit_count
  end
end