Skip to content

Commit 7f659ed

Browse files
committed
Start of luagit2 API docs.
0 parents  commit 7f659ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+11446
-0
lines changed

git2.luadoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
--
2+
-- Warning: AUTOGENERATED DOCS.
3+
--
4+
5+
--- Module git2.
6+
--
7+
-- <br />Class <a href="StrArray.html">StrArray</a>
8+
-- <br />Class <a href="Repository.html">Repository</a>
9+
-- <br />Class <a href="Config.html">Config</a>
10+
-- <br />Class <a href="OdbObject.html">OdbObject</a>
11+
-- <br />Class <a href="OID.html">OID</a>
12+
-- <br />Class <a href="OID_Shorten.html">OID_Shorten</a>
13+
-- <br />Class <a href="ODB.html">ODB</a>
14+
-- <br />Class <a href="ODBBackend.html">ODBBackend</a>
15+
-- <br />Class <a href="Index.html">Index</a>
16+
-- <br />Class <a href="IndexEntry.html">IndexEntry</a>
17+
-- <br />Class <a href="IndexEntryUnmerged.html">IndexEntryUnmerged</a>
18+
-- <br />Class <a href="Object.html">Object</a>
19+
-- <br />Class <a href="Blob.html">Blob</a>
20+
-- <br />Class <a href="Signature.html">Signature</a>
21+
-- <br />Class <a href="Commit.html">Commit</a>
22+
-- <br />Class <a href="Tree.html">Tree</a>
23+
-- <br />Class <a href="TreeEntry.html">TreeEntry</a>
24+
-- <br />Class <a href="Tag.html">Tag</a>
25+
-- <br />Class <a href="RevWalk.html">RevWalk</a>
26+
-- <br />Class <a href="Reference.html">Reference</a>
27+
module("git2")
28+
29+
--- module function
30+
--
31+
-- @name git2.version
32+
-- @return <code>nil</code>.
33+
function git2.version()
34+
end
35+

git2/Blob.luadoc

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
--
2+
-- Warning: AUTOGENERATED DOCS.
3+
--
4+
5+
--- Class "Blob".
6+
--
7+
-- Extends <a href="Object.html">Object</a><br />
8+
-- <br />
9+
module("Blob")
10+
11+
--- Create a new Blob object
12+
--
13+
-- @name Blob.lookup
14+
-- @param repo Must be of type `Repository`.
15+
-- @param id Must be of type `OID`.
16+
-- @return <code>Blob</code> or <code>nil</code> on error.
17+
-- @return Error string.
18+
function Blob.lookup(repo, id)
19+
end
20+
21+
--- module function
22+
--
23+
-- @name Blob.fromfile
24+
-- @param repo Must be of type `Repository`.
25+
-- @param path Must be of type `string`.
26+
-- @return <code>OID</code> or <code>nil</code> on error.
27+
-- @return Error string.
28+
function Blob.fromfile(repo, path)
29+
end
30+
31+
--- module function
32+
--
33+
-- @name Blob.frombuffer
34+
-- @param repo Must be of type `Repository`.
35+
-- @param buffer Must be of type `string`.
36+
-- @return <code>OID</code> or <code>nil</code> on error.
37+
-- @return Error string.
38+
function Blob.frombuffer(repo, buffer)
39+
end
40+
41+
--- object method.
42+
--
43+
-- @name Blob:rawcontent
44+
-- @return <code>string</code>.
45+
function Blob:rawcontent()
46+
end
47+
48+
--- object method.
49+
--
50+
-- @name Blob:rawsize
51+
-- @return <code>integer</code>.
52+
function Blob:rawsize()
53+
end
54+
55+
--- Destroy this object.
56+
--
57+
-- @name Object:free
58+
function Object:free()
59+
end
60+
61+
--- object method.
62+
--
63+
-- @name Object:id
64+
-- @return <code>OID</code>.
65+
function Object:id()
66+
end
67+
68+
--- object method.
69+
--
70+
-- @name Object:type
71+
-- @return <code>string</code>.
72+
function Object:type()
73+
end
74+
75+
--- object method.
76+
--
77+
-- @name Object:owner
78+
-- @return <code>Repository</code>.
79+
function Object:owner()
80+
end
81+

git2/Commit.luadoc

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
--
2+
-- Warning: AUTOGENERATED DOCS.
3+
--
4+
5+
--- Class "Commit".
6+
--
7+
-- Extends <a href="Object.html">Object</a><br />
8+
-- <br />
9+
module("Commit")
10+
11+
--- Create a new Commit object
12+
--
13+
-- @name Commit.lookup
14+
-- @param repo Must be of type `Repository`.
15+
-- @param id Must be of type `OID`.
16+
-- @return <code>Commit</code> or <code>nil</code> on error.
17+
-- @return Error string.
18+
function Commit.lookup(repo, id)
19+
end
20+
21+
--- module function
22+
--
23+
-- @name Commit.create
24+
-- @param oid Must be of type `OID`.
25+
-- @param repo Must be of type `Repository`.
26+
-- @param update_ref Must be of type `string`.
27+
-- @param author Must be of type `Signature`.
28+
-- @param committer Must be of type `Signature`.
29+
-- @param message_encoding Must be of type `string`.
30+
-- @param message Must be of type `string`.
31+
-- @param tree Must be of type `Tree`.
32+
-- @param parent Must be of type `Commit`.
33+
-- @return <code>true</code> if no error.
34+
-- @return Error string.
35+
function Commit.create(oid, repo, update_ref, author, committer, message_encoding, message, tree, parent)
36+
end
37+
38+
--- object method.
39+
--
40+
-- @name Commit:id
41+
-- @return <code>OID</code>.
42+
function Commit:id()
43+
end
44+
45+
--- object method.
46+
--
47+
-- @name Commit:message_encoding
48+
-- @return <code>string</code>.
49+
function Commit:message_encoding()
50+
end
51+
52+
--- object method.
53+
--
54+
-- @name Commit:message
55+
-- @return <code>string</code>.
56+
function Commit:message()
57+
end
58+
59+
--- object method.
60+
--
61+
-- @name Commit:time
62+
-- @return <code>integer</code>.
63+
function Commit:time()
64+
end
65+
66+
--- object method.
67+
--
68+
-- @name Commit:time_offset
69+
-- @return <code>integer</code>.
70+
function Commit:time_offset()
71+
end
72+
73+
--- object method.
74+
--
75+
-- @name Commit:committer
76+
-- @return <code>Signature</code>.
77+
function Commit:committer()
78+
end
79+
80+
--- object method.
81+
--
82+
-- @name Commit:author
83+
-- @return <code>Signature</code>.
84+
function Commit:author()
85+
end
86+
87+
--- object method.
88+
--
89+
-- @name Commit:tree
90+
-- @return <code>Tree</code> or <code>nil</code> on error.
91+
-- @return Error string.
92+
function Commit:tree()
93+
end
94+
95+
--- object method.
96+
--
97+
-- @name Commit:parentcount
98+
-- @return <code>integer</code>.
99+
function Commit:parentcount()
100+
end
101+
102+
--- object method.
103+
--
104+
-- @name Commit:parent
105+
-- @param n Must be of type `integer`.
106+
-- @return <code>Commit</code> or <code>nil</code> on error.
107+
-- @return Error string.
108+
function Commit:parent(n)
109+
end
110+
111+
--- Destroy this object.
112+
--
113+
-- @name Object:free
114+
function Object:free()
115+
end
116+
117+
--- object method.
118+
--
119+
-- @name Object:id
120+
-- @return <code>OID</code>.
121+
function Object:id()
122+
end
123+
124+
--- object method.
125+
--
126+
-- @name Object:type
127+
-- @return <code>string</code>.
128+
function Object:type()
129+
end
130+
131+
--- object method.
132+
--
133+
-- @name Object:owner
134+
-- @return <code>Repository</code>.
135+
function Object:owner()
136+
end
137+

git2/Config.luadoc

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
--
2+
-- Warning: AUTOGENERATED DOCS.
3+
--
4+
5+
--- Class "Config".
6+
--
7+
-- <br />
8+
module("Config")
9+
10+
--- Create a new Config object
11+
--
12+
-- @name Config.new
13+
-- @return <code>Config</code> or <code>nil</code> on error.
14+
-- @return Error string.
15+
function Config.new()
16+
end
17+
18+
--- Create a new Config object
19+
--
20+
-- @name Config.open
21+
-- @param path Must be of type `string`.
22+
-- @return <code>Config</code> or <code>nil</code> on error.
23+
-- @return Error string.
24+
function Config.open(path)
25+
end
26+
27+
--- Destroy this object.
28+
--
29+
-- @name Config:free
30+
function Config:free()
31+
end
32+
33+
--- object method.
34+
--
35+
-- @name Config:add_file_ondisk
36+
-- @param path Must be of type `string`.
37+
-- @param priority Must be of type `integer`.
38+
-- @return <code>true</code> if no error.
39+
-- @return Error string.
40+
function Config:add_file_ondisk(path, priority)
41+
end
42+
43+
--- object method.
44+
--
45+
-- @name Config:get_int32
46+
-- @param name Must be of type `string`.
47+
-- @return <code>integer</code> or <code>nil</code> on error.
48+
-- @return Error string.
49+
function Config:get_int32(name)
50+
end
51+
52+
--- object method.
53+
--
54+
-- @name Config:set_int32
55+
-- @param name Must be of type `string`.
56+
-- @param value Must be of type `integer`.
57+
-- @return <code>true</code> if no error.
58+
-- @return Error string.
59+
function Config:set_int32(name, value)
60+
end
61+
62+
--- object method.
63+
--
64+
-- @name Config:get_int64
65+
-- @param name Must be of type `string`.
66+
-- @return <code>integer</code> or <code>nil</code> on error.
67+
-- @return Error string.
68+
function Config:get_int64(name)
69+
end
70+
71+
--- object method.
72+
--
73+
-- @name Config:set_int64
74+
-- @param name Must be of type `string`.
75+
-- @param value Must be of type `integer`.
76+
-- @return <code>true</code> if no error.
77+
-- @return Error string.
78+
function Config:set_int64(name, value)
79+
end
80+
81+
--- object method.
82+
--
83+
-- @name Config:get_bool
84+
-- @param name Must be of type `string`.
85+
-- @return <code>boolean</code> or <code>nil</code> on error.
86+
-- @return Error string.
87+
function Config:get_bool(name)
88+
end
89+
90+
--- object method.
91+
--
92+
-- @name Config:set_bool
93+
-- @param value Must be of type `boolean`.
94+
-- @param name Must be of type `string`.
95+
-- @return <code>true</code> if no error.
96+
-- @return Error string.
97+
function Config:set_bool(value, name)
98+
end
99+
100+
--- object method.
101+
--
102+
-- @name Config:get_string
103+
-- @param name Must be of type `string`.
104+
-- @return <code>string</code> or <code>nil</code> on error.
105+
-- @return Error string.
106+
function Config:get_string(name)
107+
end
108+
109+
--- object method.
110+
--
111+
-- @name Config:set_string
112+
-- @param name Must be of type `string`.
113+
-- @param value Must be of type `string`.
114+
-- @return <code>true</code> if no error.
115+
-- @return Error string.
116+
function Config:set_string(name, value)
117+
end
118+
119+
--- object method.
120+
--
121+
-- @name Config:delete
122+
-- @param name Must be of type `string`.
123+
-- @return <code>true</code> if no error.
124+
-- @return Error string.
125+
function Config:delete(name)
126+
end
127+

0 commit comments

Comments
 (0)