blob: 4299a2bc04eb7db73c52d34b9963f42f4c744d30 (
plain)
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
29
30
31
32
33
34
35
|
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../test_helper'
class TestRawInternals < Test::Unit::TestCase
def setup
set_file_paths
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
|