libgit2_d.submodule

Undocumented in source.

Members

Aliases

git_submodule_cb
alias git_submodule_cb = int function(libgit2_d.types.git_submodule* sm, const(char)* name, void* payload)

Function pointer to receive each submodule

Enums

GIT_SUBMODULE_STATUS_IN_HEAD
anonymousenum GIT_SUBMODULE_STATUS_IN_HEAD
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_submodule_status_t
enum git_submodule_status_t

Return codes for submodule status.

Functions

GIT_SUBMODULE_STATUS_IS_INDEX_UNMODIFIED
bool GIT_SUBMODULE_STATUS_IS_INDEX_UNMODIFIED(S )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_STATUS_IS_UNMODIFIED
bool GIT_SUBMODULE_STATUS_IS_UNMODIFIED(S )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_STATUS_IS_WD_DIRTY
bool GIT_SUBMODULE_STATUS_IS_WD_DIRTY(S )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_STATUS_IS_WD_UNMODIFIED
bool GIT_SUBMODULE_STATUS_IS_WD_UNMODIFIED(S )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_UPDATE_OPTIONS_INIT
GIT_SUBMODULE_UPDATE_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_submodule_add_finalize
int git_submodule_add_finalize(libgit2_d.types.git_submodule* submodule)

Resolve the setup of a new git submodule.

git_submodule_add_setup
int git_submodule_add_setup(libgit2_d.types.git_submodule** out_, libgit2_d.types.git_repository* repo, const(char)* url, const(char)* path, int use_gitlink)

Set up a new git submodule for checkout.

git_submodule_add_to_index
int git_submodule_add_to_index(libgit2_d.types.git_submodule* submodule, int write_index)

Add current submodule HEAD commit to index of superproject.

git_submodule_branch
const(char)* git_submodule_branch(libgit2_d.types.git_submodule* submodule)

Get the branch for the submodule.

git_submodule_clone
int git_submodule_clone(libgit2_d.types.git_repository** out_, libgit2_d.types.git_submodule* submodule, const(.git_submodule_update_options)* opts)

Perform the clone step for a newly created submodule.

git_submodule_fetch_recurse_submodules
libgit2_d.types.git_submodule_recurse_t git_submodule_fetch_recurse_submodules(libgit2_d.types.git_submodule* submodule)

Read the fetchRecurseSubmodules rule for a submodule.

git_submodule_foreach
int git_submodule_foreach(libgit2_d.types.git_repository* repo, .git_submodule_cb callback, void* payload)

Iterate over all tracked submodules of a repository.

git_submodule_free
void git_submodule_free(libgit2_d.types.git_submodule* submodule)

Release a submodule

git_submodule_head_id
const(libgit2_d.oid.git_oid)* git_submodule_head_id(libgit2_d.types.git_submodule* submodule)

Get the OID for the submodule in the current HEAD tree.

git_submodule_ignore
libgit2_d.types.git_submodule_ignore_t git_submodule_ignore(libgit2_d.types.git_submodule* submodule)

Get the ignore rule that will be used for the submodule.

git_submodule_index_id
const(libgit2_d.oid.git_oid)* git_submodule_index_id(libgit2_d.types.git_submodule* submodule)

Get the OID for the submodule in the index.

git_submodule_init
int git_submodule_init(libgit2_d.types.git_submodule* submodule, int overwrite)

Copy submodule info into ".git/config" file.

git_submodule_location
int git_submodule_location(uint* location_status, libgit2_d.types.git_submodule* submodule)

Get the locations of submodule information.

git_submodule_lookup
int git_submodule_lookup(libgit2_d.types.git_submodule** out_, libgit2_d.types.git_repository* repo, const(char)* name)

Lookup submodule information by name or path.

git_submodule_name
const(char)* git_submodule_name(libgit2_d.types.git_submodule* submodule)

Get the name of submodule.

git_submodule_open
int git_submodule_open(libgit2_d.types.git_repository** repo, libgit2_d.types.git_submodule* submodule)

Open the repository for a submodule.

git_submodule_owner
libgit2_d.types.git_repository* git_submodule_owner(libgit2_d.types.git_submodule* submodule)

Get the containing repository for a submodule.

git_submodule_path
const(char)* git_submodule_path(libgit2_d.types.git_submodule* submodule)

Get the path to the submodule.

git_submodule_reload
int git_submodule_reload(libgit2_d.types.git_submodule* submodule, int force)

Reread submodule info from config, index, and HEAD.

git_submodule_repo_init
int git_submodule_repo_init(libgit2_d.types.git_repository** out_, const(libgit2_d.types.git_submodule)* sm, int use_gitlink)

Set up the subrepository for a submodule in preparation for clone.

git_submodule_resolve_url
int git_submodule_resolve_url(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_repository* repo, const(char)* url)

Resolve a submodule url relative to the given repository.

git_submodule_set_branch
int git_submodule_set_branch(libgit2_d.types.git_repository* repo, const(char)* name, const(char)* branch)

Set the branch for the submodule in the configuration

git_submodule_set_fetch_recurse_submodules
int git_submodule_set_fetch_recurse_submodules(libgit2_d.types.git_repository* repo, const(char)* name, libgit2_d.types.git_submodule_recurse_t fetch_recurse_submodules)

Set the fetchRecurseSubmodules rule for a submodule in the configuration

git_submodule_set_ignore
int git_submodule_set_ignore(libgit2_d.types.git_repository* repo, const(char)* name, libgit2_d.types.git_submodule_ignore_t ignore)

Set the ignore rule for the submodule in the configuration

git_submodule_set_update
int git_submodule_set_update(libgit2_d.types.git_repository* repo, const(char)* name, libgit2_d.types.git_submodule_update_t update)

Set the update rule for the submodule in the configuration

git_submodule_set_url
int git_submodule_set_url(libgit2_d.types.git_repository* repo, const(char)* name, const(char)* url)

Set the URL for the submodule in the configuration

git_submodule_status
int git_submodule_status(uint* status, libgit2_d.types.git_repository* repo, const(char)* name, libgit2_d.types.git_submodule_ignore_t ignore)

Get the status for a submodule.

git_submodule_sync
int git_submodule_sync(libgit2_d.types.git_submodule* submodule)

Copy submodule remote info into submodule repo.

git_submodule_update
int git_submodule_update(libgit2_d.types.git_submodule* submodule, int init, .git_submodule_update_options* options)

Update a submodule. This will clone a missing submodule and checkout the subrepository to the commit specified in the index of the containing repository. If the submodule repository doesn't contain the target commit (e.g. because fetchRecurseSubmodules isn't set), then the submodule is fetched using the fetch options supplied in options.

git_submodule_update_options_init
int git_submodule_update_options_init(.git_submodule_update_options* opts, uint version_)

Initialize git_submodule_update_options structure

git_submodule_update_strategy
libgit2_d.types.git_submodule_update_t git_submodule_update_strategy(libgit2_d.types.git_submodule* submodule)

Get the update rule that will be used for the submodule.

git_submodule_url
const(char)* git_submodule_url(libgit2_d.types.git_submodule* submodule)

Get the URL for the submodule.

git_submodule_wd_id
const(libgit2_d.oid.git_oid)* git_submodule_wd_id(libgit2_d.types.git_submodule* submodule)

Get the OID for the submodule in the current working directory.

Manifest constants

GIT_SUBMODULE_STATUS__INDEX_FLAGS
enum GIT_SUBMODULE_STATUS__INDEX_FLAGS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_STATUS__IN_FLAGS
enum GIT_SUBMODULE_STATUS__IN_FLAGS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_STATUS__WD_FLAGS
enum GIT_SUBMODULE_STATUS__WD_FLAGS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_SUBMODULE_UPDATE_OPTIONS_VERSION
enum GIT_SUBMODULE_UPDATE_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_submodule_update_options
struct git_submodule_update_options

Submodule update options structure

Meta