vcs2git-0.4.0 is not a library.
vcs2git: Convert VCS repos to Git Submodules
Installation
Install the binary using Cargo.
Usage
This program reads a YAML .repos file and adds listed repos as submodules in the current Git repository.
Basic Usage
Let's get started with Autoware's autoware.repos for example.
# Enter into the root of your Git repo
# Add listed repos in autoware.repos as submodules under src directory.
# Save added submodules
Command Line Options
vcs2git [OPTIONS] <REPO_FILE> <PREFIX>
Arguments:
<REPO_FILE> The YAML file of a repository list
<PREFIX> The directory to add submodules
Options:
--only <REPO>... Process only these repositories
--ignore <REPO>... Process all repositories except these
--skip-existing Don't update existing submodules (by default, existing submodules are updated)
--sync-selection Remove submodules that are not in the current selection
--no-checkout Do not checkout the files in each submodule
--dry-run Preview what would be done without making changes
-h, --help Print help
Advanced Examples
Process Only Specific Repositories
# Only add specific repositories
# Process all except specific repositories
Synchronize with Repository File
# Remove submodules not listed in the repos file
# Keep only specific repositories and remove all others
Skip Updating Existing Submodules
# Add new submodules but don't update existing ones
Preview Changes (Dry Run)
# See what would be done without making changes
# Preview sync operation
License
This software is distributed under MIT license. Please see the license file.