You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- @param repo repository where to blob will be written. Must be of type <a href="Repository.html">Repository</a>.
36
-
-- @param buffer data to be written into the blob. Must be of type <code>string</code>.
33
+
-- @param repo Must be of type <a href="Repository.html">Repository</a>.
34
+
-- @param buffer Must be of type <code>string</code>.
37
35
-- @return <a href="OID.html">OID</a> or <code>nil</code> on error.
38
36
-- @return Error string.
39
-
-- @name Blob.frombuffer
40
-
function Blob.frombuffer(repo, buffer)
37
+
-- @name Blob.from_buffer
38
+
function Blob.from_buffer(repo, buffer)
41
39
end
42
40
43
41
--- object method.
44
42
--
45
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/blob/git_blob_rawcontent">git_blob_rawcontent</a>:<p><p>A pointer to the raw content of a blob is returned;
43
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/blob/git_blob_rawcontent">git_blob_rawcontent</a>:<p><p>A pointer to the raw content of a blob is returned;
46
44
-- this pointer is owned internally by the object and shall
47
45
-- not be free'd. The pointer may be invalidated at a later
--- Destroy this object (will be called by Garbage Collector).
64
62
--
65
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/object/git_object_free">git_object_free</a>:<p><p>This method instructs the library to close an existing
63
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/object/git_object_free">git_object_free</a>:<p><p>This method instructs the library to close an existing
66
64
-- object; note that git_objects are owned and cached by the repository
67
65
-- so the object may or may not be freed after this library call,
68
66
-- depending on how agressive is the caching mechanism used
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/object/git_object_owner">git_object_owner</a>:<p><p>Freeing or calling `git_repository_close` on the
92
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/object/git_object_owner">git_object_owner</a>:<p><p>Freeing or calling `git_repository_close` on the
95
93
-- returned pointer will invalidate the actual object.<p> Any other operation may be run on the repository without
-- @param repo the repo to use when locating the commit.. Must be of type <a href="Repository.html">Repository</a>.
14
14
-- @param id identity of the commit to locate. If the object is an annotated tag it will be peeled back to the commit.. Must be of type <a href="OID.html">OID</a>.
15
15
-- @return <a href="Commit.html">Commit</a> or <code>nil</code> on error.
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/commit/git_commit_message_encoding">git_commit_message_encoding</a>:<p><p>The encoding may be NULL if the `encoding` header
48
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/commit/git_commit_message_encoding">git_commit_message_encoding</a>:<p><p>The encoding may be NULL if the `encoding` header
49
49
-- in the commit is missing; in that case UTF-8 is assumed.
-- @param n the position of the parent (from 0 to `parentcount`). Must be of type <code>integer</code>.
116
116
-- @return <a href="Commit.html">Commit</a> or <code>nil</code> on error.
117
117
-- @return Error string.
@@ -121,7 +121,7 @@ end
121
121
122
122
--- Destroy this object (will be called by Garbage Collector).
123
123
--
124
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/object/git_object_free">git_object_free</a>:<p><p>This method instructs the library to close an existing
124
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/object/git_object_free">git_object_free</a>:<p><p>This method instructs the library to close an existing
125
125
-- object; note that git_objects are owned and cached by the repository
126
126
-- so the object may or may not be freed after this library call,
127
127
-- depending on how agressive is the caching mechanism used
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/object/git_object_owner">git_object_owner</a>:<p><p>Freeing or calling `git_repository_close` on the
153
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/object/git_object_owner">git_object_owner</a>:<p><p>Freeing or calling `git_repository_close` on the
154
154
-- returned pointer will invalidate the actual object.<p> Any other operation may be run on the repository without
Copy file name to clipboardExpand all lines: git2/Config.luadoc
+25-14Lines changed: 25 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ module("Config")
8
8
9
9
--- Create a new Config object.
10
10
--
11
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/config/git_config_new">git_config_new</a>:<p><p>This object is empty, so you have to add a file to it before you
11
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/config/git_config_new">git_config_new</a>:<p><p>This object is empty, so you have to add a file to it before you
12
12
-- can do anything with it.
13
13
-- @return <a href="Config.html">Config</a> or <code>nil</code> on error.
14
14
-- @return Error string.
@@ -18,7 +18,7 @@ end
18
18
19
19
--- Create a new Config object.
20
20
--
21
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/config/git_config_open_ondisk">git_config_open_ondisk</a>:<p><p>This method is a simple utility wrapper for the following sequence
21
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/config/git_config_open_ondisk">git_config_open_ondisk</a>:<p><p>This method is a simple utility wrapper for the following sequence
22
22
-- of calls:
23
23
-- - git_config_new
24
24
-- - git_config_add_file_ondisk
@@ -31,25 +31,27 @@ end
31
31
32
32
--- Destroy this object (will be called by Garbage Collector).
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/config/git_config_add_file_ondisk">git_config_add_file_ondisk</a>:<p><p>The on-disk file pointed at by `path` will be opened and
41
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/config/git_config_add_file_ondisk">git_config_add_file_ondisk</a>:<p><p>The on-disk file pointed at by `path` will be opened and
42
42
-- parsed; it's expected to be a native Git config file following
43
43
-- the default Git config syntax (see man git-config).<p> Note that the configuration object will free the file
44
44
-- automatically.<p> Further queries on this config object will access each
45
45
-- of the config file instances in order (instances with
46
46
-- a higher priority will be accessed first).
47
47
-- @param path path to the configuration file (backend) to add. Must be of type <code>string</code>.
48
-
-- @param priority the priority the backend should have. Must be of type <code>integer</code>.
48
+
-- @param level Must be of type <code>integer</code>.
49
+
-- @param repo Must be of type <a href="Repository.html">Repository</a>.
50
+
-- @param force Must be of type <code>integer</code>.
49
51
-- @return <code>true</code> if no error.
50
52
-- @return Error string.
51
53
-- @name Config:add_file_ondisk
52
-
function Config:add_file_ondisk(path, priority)
54
+
function Config:add_file_ondisk(path, level, repo, force)
53
55
end
54
56
55
57
--- object method.
@@ -92,7 +94,7 @@ end
92
94
93
95
--- object method.
94
96
--
95
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/config/git_config_get_bool">git_config_get_bool</a>:<p><p>This function uses the usual C convention of 0 being false and
97
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/config/git_config_get_bool">git_config_get_bool</a>:<p><p>This function uses the usual C convention of 0 being false and
96
98
-- anything else true.
97
99
-- @param name the variable's name. Must be of type <code>string</code>.
98
100
-- @return <code>boolean</code> or <code>nil</code> on error.
-- @param value the value to store. Must be of type <code>boolean</code>.
108
110
-- @param name the variable's name. Must be of type <code>string</code>.
109
111
-- @return <code>true</code> if no error.
@@ -114,7 +116,7 @@ end
114
116
115
117
--- object method.
116
118
--
117
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/config/git_config_get_string">git_config_get_string</a>:<p><p>The string is owned by the variable and should not be freed by the
119
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/config/git_config_get_string">git_config_get_string</a>:<p><p>The string is owned by the variable and should not be freed by the
118
120
-- user.
119
121
-- @param name the variable's name. Must be of type <code>string</code>.
120
122
-- @return <code>string</code> or <code>nil</code> on error.
@@ -125,7 +127,7 @@ end
125
127
126
128
--- object method.
127
129
--
128
-
-- <p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/config/git_config_set_string">git_config_set_string</a>:<p><p>A copy of the string is made and the user is free to use it
130
+
-- <p>Calls <a href="http://libgit2.github.io/libgit2/#HEAD/group/config/git_config_set_string">git_config_set_string</a>:<p><p>A copy of the string is made and the user is free to use it
129
131
-- afterwards.
130
132
-- @param name the variable's name. Must be of type <code>string</code>.
131
133
-- @param value the string to store.. Must be of type <code>string</code>.
0 commit comments