diff options
author | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-20 13:24:44 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-20 13:24:44 -0800 |
commit | 90dea6d415bfc5734bc87c2797b26cca311246bc (patch) | |
tree | ca17b784c0f417bb62fde17e9b11a1a8a444c07e /tests/units/test_raw_internals.rb | |
parent | d07a2c04c1599fe707831afdd29397cc36e02fa6 (diff) | |
download | third_party-ruby-git-90dea6d415bfc5734bc87c2797b26cca311246bc.tar.gz third_party-ruby-git-90dea6d415bfc5734bc87c2797b26cca311246bc.tar.xz third_party-ruby-git-90dea6d415bfc5734bc87c2797b26cca311246bc.zip |
have the pure ruby bindings working to some degree
Diffstat (limited to 'tests/units/test_raw_internals.rb')
-rw-r--r-- | tests/units/test_raw_internals.rb | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/units/test_raw_internals.rb b/tests/units/test_raw_internals.rb index b135e52..4299a2b 100644 --- a/tests/units/test_raw_internals.rb +++ b/tests/units/test_raw_internals.rb @@ -6,10 +6,30 @@ class TestRawInternals < Test::Unit::TestCase def setup set_file_paths - @git = Git.open(@wdir) end def test_raw_log + g = Git.bare(@wbare) + #g.repack + + c = g.object("HEAD") + puts sha = c.sha + + repo = Git::Raw::Repository.new(@wbare) + while sha do + o = repo.get_raw_object_by_sha1(sha) + c = Git::Raw::Object.from_raw(o) + + sha = c.parent.first + puts sha + end + + g.log(60).each do |c| + puts c.sha + end + + puts c.inspect + end end
\ No newline at end of file |