Implement Clone-as-Submodule feature#348
Conversation
|
Thanks for the pull request. |
4bd8f85 to
9949237
Compare
|
Thanks for reply. I am considering following situations.
|
|
I think working directly on |
|
Thanks for this PR! The use case of managing ghq root as a git repository is valid. However, I have some concerns about the current implementation and would like to suggest an alternative approach. Concerns with Current ImplementationDefault Behavior ChangeThe PR changes cd ~/my-project # happens to be a git repo
ghq get some/repo # unexpectedly adds as submoduleSuggestion: Opt-in
|
| Flag | Use Case | Repository Structure |
|---|---|---|
--submodule |
Manage repos as part of parent git repo | Parent controls child commits |
--worktree |
Sync bare repos via file sync tools | Independent repositories |
These two features could complement each other nicely. Would love to hear your thoughts!
Background
There are some needs to manage your ghq root as git repository, for syncing your local stubs, etc.
Changes
This PR changes the default behavior of
ghq getlike:git submodule addinstead.