Commit 1656c6fe7f446c31f374d3ab16ce20a44180f1f3

Merge branch 'master' of git://github.com/mojombo/grit

* 'master' of git://github.com/mojombo/grit:
Updated manifest.txt to include new ref & remote classes
added refs super class for tag & head + added remote subclass

Conflicts:

lib/grit/repo.rb

Commit diff

lib/grit/repo.rb

 
4343 File.open(File.join(self.path, 'description')).read.chomp
4444 end
4545
46 # An array of Ref objects representing the refs in
47 # this repo
48 #
49 # Returns Grit::Ref[] (baked)
50 def refs
51 [ Head.find_all(self), Tag.find_all(self), Remote.find_all(self) ].flatten
52 end
53
5446 # An array of Head objects representing the branch heads in
5547 # this repo
5648 #
7575 Remote.find_all(self)
7676 end
7777
78 # An array of Ref objects representing the refs in
79 # this repo
80 #
81 # Returns Grit::Ref[] (baked)
82 def refs
83 [ Head.find_all(self), Tag.find_all(self), Remote.find_all(self) ].flatten
84 end
85
7886 # An array of Commit objects representing the history of a given ref/commit
7987 # +start+ is the branch/commit name (default 'master')
8088 # +max_count+ is the maximum number of commits to return (default 10)
toggle raw diff