libgit2

git_submodule

Version:

Description of submodule

This record describes a submodule found in a repository. There should be an entry for every submodule found in the HEAD and for every submodule described in .gitmodules. The fields are as follows:

  • name is the name of the submodule from .gitmodules.
  • path is the path to the submodule from the repo working directory. It is almost always the same as name.
  • url is the url for the submodule.
  • oid is the HEAD SHA1 for the submodule.
  • update is a value from above - see gitmodules(5) update.
  • ignore is a value from above - see gitmodules(5) ignore.
  • fetch_recurse is 0 or 1 - see gitmodules(5) fetchRecurseSubmodules.
  • refcount is for internal use.

If the submodule has been added to .gitmodules but not yet git added, then the oid will be zero. If the submodule has been deleted, but the delete has not been committed yet, then the oid will be set, but the url will be NULL.

Signature

typedef struct git_submodule { char *name char *path char *url git_oid oid git_submodule_update_t update git_submodule_ignore_t ignore int fetch_recurse int refcount };

Members

char *
name
char *
path
char *
url
oid
int
fetch_recurse
int
refcount

Parameter To

Versions