@@ -11,21 +11,21 @@ local git2 = require"git2"
11
11
require " utils"
12
12
13
13
print (" dump git2 interface" )
14
- print (dbg_dump (git2 ))
14
+ -- print(dbg_dump(git2))
15
15
16
16
local rep = assert (git2 .Repository (git_path ))
17
17
18
18
print (" dump Repository interface" )
19
- print (dbg_dump (rep ))
19
+ -- print(dbg_dump(rep))
20
20
21
21
local oid = git2 .OID .hex (" d5a93c463d4cca0068750eb6af7b4b54eea8599b" )
22
22
print (" dump OID interface" )
23
- print (dbg_dump (oid ))
23
+ -- print(dbg_dump(oid))
24
24
print (' convert OID value to string = <' .. tostring (oid ) .. ' >' )
25
25
26
26
local db = rep :odb ()
27
27
print (" dump Database interface" )
28
- print (dbg_dump (db ))
28
+ -- print(dbg_dump(db))
29
29
30
30
print ()
31
31
print (' test writing to the object database:' )
@@ -36,7 +36,7 @@ print("read written object out of the database.")
36
36
local odb_obj = db :read (oid )
37
37
print ()
38
38
print (" dump OdbObject interface" )
39
- print (dbg_dump (odb_obj ))
39
+ -- print(dbg_dump(odb_obj))
40
40
local function dump_odb_obj (obj )
41
41
-- check obj type
42
42
if obj == nil or not tostring (obj ):match (' ^OdbObject: ' ) then
@@ -81,15 +81,15 @@ print("test parsing a commit object: ", commit_id)
81
81
local commit1 , err = git2 .Commit .lookup (rep , commit_id )
82
82
print (commit1 , err )
83
83
print (" dump Commit interface" )
84
- print (dbg_dump (commit1 ))
84
+ -- print(dbg_dump(commit1))
85
85
local function dump_signature (pre , sig )
86
86
print (pre .. ' .name = ' , sig :name ())
87
87
print (pre .. ' .email = ' , sig :email ())
88
88
print (pre .. ' .when = ' , sig :when ())
89
89
end
90
90
local function dump_blob (blob )
91
91
print (" dump Blob interface" )
92
- print (dbg_dump (blob ))
92
+ -- print(dbg_dump(blob))
93
93
print (' blob.rawcontent.size =' , blob :rawsize ())
94
94
print (' blob.rawcontents =' , blob :rawcontent ())
95
95
end
@@ -142,7 +142,7 @@ dump_commit(commit1)
142
142
143
143
local index = rep :index ()
144
144
print (" dump Index interface" )
145
- print (dbg_dump (index ))
145
+ -- print(dbg_dump(index))
146
146
local function dump_index_entry (entry )
147
147
if entry == nil then
148
148
return
@@ -177,7 +177,7 @@ dump_index(index)
177
177
178
178
local revwalk = git2 .RevWalk (rep )
179
179
print (" dump RevWalk interface" )
180
- print (dbg_dump (revwalk ))
180
+ -- print(dbg_dump(revwalk))
181
181
print (' sorting:' , revwalk :sorting (revwalk .SORT_TOPOLOGICAL + revwalk .SORT_REVERSE ))
182
182
local head_id = git2 .OID .hex (" 5c697d74eb692d650799ca1b0a10254d7130953d" )
183
183
local head = assert (git2 .Commit .lookup (rep , head_id ))
194
194
local tag_id = git2 .OID .hex (' 82dfe36284d77b608ccc9d96e0ffa5782cb7c835' )
195
195
local tag = git2 .Tag .lookup (rep , tag_id )
196
196
print (" dump Tag interface" )
197
- print (dbg_dump (tag ))
197
+ -- print(dbg_dump(tag))
198
198
local function dump_tag (tag )
199
199
if tag == nil then
200
200
return
0 commit comments