Git::Raw::Submodule(3pm) | User Contributed Perl Documentation | Git::Raw::Submodule(3pm) |
Git::Raw::Submodule - Git submodule class
version 0.87
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Iterate over all tracked submodules of a repository. Calls "\&callback" for each submodule. The callback receives a single argument, the name of the submodule. A non-zero return value will terminate the loop.
Lookup submodule information by name or path. Returns a Git::Raw::Submodule object.
Just like "git submodule init", this copies information about the submodule into ".git/config".
Open the repository for a submodule. Returns a Git::Raw::Repository object.
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, then the submodule is fetched using the fetch options supplied in "\%update_opts". If the submodule is not initialized, setting the $init flag to true will initialize the submodule before updating. Otherwise, this method will thrown an exception if attempting to update an uninitialzed repository.
Valid fields for %update_opts are:
See "Git::Raw::Repository->checkout()".
See "Git::Raw::Remote->fetch()".
Allow fetching from the submodule's default remote if the target commit isn't found. Enabled by default.
Get the name of submodule.
Get the path to the submodule.
Get the URL of the submodule.
Add current submodule HEAD commit to index of superproject.
Copy submodule remote info into submodule repo.
Reread submodule info from config, index, and HEAD.
Jacques Germishuys <jacquesg@striata.com>
Copyright 2019 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
2020-12-09 | perl v5.32.0 |