Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to-official command #4

Open
nsensfel opened this issue Apr 21, 2021 · 0 comments
Open

Add to-official command #4

nsensfel opened this issue Apr 21, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nsensfel
Copy link
Owner

Add a to-official command that transforms all submodules into Git Submodules. This is likely to be challenging, since if that was simple, the git-submodules tool wouldn't have much of a reason to be there.
Beware of git-submodules that were previously Git Submodules and weren't turned into regular repositories beforehand.
At first glance, the steps to take are going to be:

  1. Retrieve path list of all Git Submodules in the repository.
  2. Remove from the repository all Git Submodules whose path was targeted by the to-official command.
  3. Find a source that supports the target commit (Is that doable without cloning the repo?) for each target path.
  4. Add a Git Submodule to the repository for each target path using the aforementioned source.
@nsensfel nsensfel added the enhancement New feature or request label Apr 21, 2021
@nsensfel nsensfel self-assigned this Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant