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
The git_submodule_update_options instance to initialize.
version
Number
Version of struct; pass GIT_SUBMODULE_UPDATE_OPTIONS_VERSION
Returns
Number
Zero on success; -1 on failure.
Submodule#addFinalize Async
submodule.addFinalize().then(function(result){// Use result});
Returns
Number
Submodule#addToIndex Async
submodule.addToIndex(write_index).then(function(result){// Use result});
| Parameters | Type |
| --- | --- | --- |
| write_index | Number | Boolean if this should immediately write the index file. If you pass this as false, you will have to get the git_index and explicitly call git_index_write() on it to save the change. |
submodule.init(overwrite).then(function(result){// Use result});
| Parameters | Type |
| --- | --- | --- |
| overwrite | Number | By default, existing entries will not be overwritten, but setting this to true forces them to be updated. |
Returns
Number
0 on success,
<
0 on failure.
Submodule#location Async
submodule.location().then(function(result){// Use result});
Returns
Number
Combination of first four GIT_SUBMODULE_STATUS flags
Submodule#name Sync
varstring=submodule.name();
Returns
String
Submodule#open Async
submodule.open().then(function(repository){// Use repository});
| Parameters | Type |
| --- | --- | --- |
| force | Number | Force reload even if the data doesn't seem out of date |
Returns
Number
0 on success,
<
0 on error
Submodule#repoInit Async
submodule.repoInit(use_gitlink).then(function(repository){// Use repository});
| Parameters | Type |
| --- | --- | --- |
| use_gitlink | Number | Should the workdir contain a gitlink to the repo in .git/modules vs. repo directly in workdir. |
submodule.sync().then(function(result){// Use result});
Returns
Number
Submodule#update Async
submodule.update(init,options).then(function(result){// Use result});
| Parameters | Type |
| --- | --- | --- |
| init | Number | If the submodule is not initialized, setting this flag to true will initialize the submodule before updating. Otherwise, this will return an error if attempting to update an uninitialzed repository. but setting this to true forces them to be updated. |
| options | SubmoduleUpdateOptions | configuration options for the update. If NULL, the function works as though GIT_SUBMODULE_UPDATE_OPTIONS_INIT was passed. |
Returns
Number
0 on success, any non-zero return value from a callback
function, or a negative value to indicate an error (use
`giterr_last` for a detailed error message). |
Submodule#updateStrategy Sync
varresult=submodule.updateStrategy();
Returns
Number
The current git_submodule_update_t value that will be used