SubmoduleCollection.Add() using clone#1232
SubmoduleCollection.Add() using clone#1232JasonGoemaat wants to merge 4 commits intolibgit2:vNextfrom
Conversation
SubmoduleCollection.Add(url, subdir) acts like the command line 'git submodule add url subdir'. It calls git_submodule_add_setup, then deletes the directory created by that and clones into the same directory and calls git_submodule_add_finalize. The end result is that the .gitmodules file and the 'file' for the submodule directory are staged and ready to commit.
8429efd to
7b64825
Compare
|
This functionality should not live in |
|
Did this ever get into a release?
There is no |
I see two other pull requests for the same feature (#482 and #684) that haven't been updated in 18 months, so I thought I would give it a try since I need this functionality for a project to convert from another source control system.
SubmoduleCollection.Add(url, subdir) acts like the command line 'git submodule add url subdir'.
It calls git_submodule_add_setup, then deletes the directory created by that and clones
into the same directory and calls git_submodule_add_finalize. The end result is that the
.gitmodules file and the 'file' for the submodule directory are staged and ready to commit.