libgit2

submodule

Version:

Submodule support in libgit2 builds a list of known submodules and keeps it in the repository. The list is built from the .gitmodules file, the .git/config file, the index, and the HEAD tree. Items in the working directory that look like submodules (i.e. a git repo) but are not mentioned in those places won't be tracked.

Objects

Opaque structure representing a submodule

Structs

Submodule update options structure

Macros

Enums

Return codes for submodule status

Submodule update values

Submodule ignore values

Options for submodule recurse

Functions

Initializes a git_submodule_update_options with default values Equivalent to creating an instance with GIT_SUBMODULE_UPDATE_OPTIONS_INIT.

Update a submodule checkout the subrepository to the commit specified in the index of containing repository.

Lookup submodule information by name or path

Release a submodule

Iterate over all tracked submodules of a repository

Set up a new git submodule for checkout

Resolve the setup of a new git submodule

Add current submodule HEAD commit to index of superproject

Write submodule settings to

Get the containing repository for a submodule

Get the name of submodule

Get the path to the submodule

Get the URL for the submodule

Resolve a submodule url relative to the given repository

Get the branch for the submodule

Set the URL for the submodule

Get the OID for the submodule in the index

Get the OID for the submodule in the current HEAD tree

Get the OID for the submodule in the current working directory

Get the ignore rule that will be used for the submodule

Set the ignore rule for the submodule

Get the update rule that will be used for the submodule

Set the update rule for the submodule

Read the fetchRecurseSubmodules rule for a submodule

Set the fetchRecurseSubmodules rule for a submodule

Copy submodule info into "

Set up the subrepository for a submodule in preparation for clone

Copy submodule remote info into submodule repo

Open the repository for a submodule

Reread submodule info from config, index, and HEAD

Reread all submodule info

Get the status for a submodule

Get the locations of submodule information