Submodule
Object Hierarchy:
Description:
[ CCode ( ref_function = "ggit_submodule_ref" , type_id = "ggit_submodule_get_type ()" , unref_function = "ggit_submodule_unref" ) ]
[ Compact ]
public class Submodule
Represents a git submodule.
Content:
Methods:
- public unowned Submodule? @ref ()
Atomically increments the reference count of this
by one.
- public bool get_fetch_recurse ()
Gets whether to fetch recursively.
- public OId get_head_id ()
- public SubmoduleIgnore get_ignore ()
- public OId? get_index_id ()
Gets the OID for the submodule in the index or
null if there is no index.
- public unowned string? get_name ()
Gets the name of the submodule from .
- public Repository? get_owner ()
Gets the containing repository for a submodule.
- public unowned string? get_path ()
Gets the path to the submodule from the repo working directory.
- public SubmoduleUpdate get_update ()
- public unowned string? get_url ()
Gets the url for the submodule or null if
the submodule has been deleted but not yet committed.
- public OId? get_workdir_id ()
Gets the OID for the submodule in the current working directory.
- public void init (bool overwrite) throws Error
Just like "git submodule init", this copies information about the submodule
into ".
- public Repository? open () throws Error
Open the repository for a submodule.
- public void reload (bool force) throws Error
Rereads submodule info from config, index, and HEAD.
- public void sync () throws Error
Copies the information about the submodules URL into the checked out
submodule config, acting like "git submodule sync".
- public void unref ()
Atomically decrements the reference count of this
by one.
- public void update (bool init, SubmoduleUpdateOptions options) throws Error
Update a submodule.