3 ms·
Yep, you have it correct. I've got a note at the bottom of the README that I'm considering adding a config field to keep the .git directory, but I'm trying to k
by ryapric 2y ago
Yep, you have it correct. I've got a note at the bottom of the README that I'm considering adding a config field to keep the .git directory, but I'm trying to keep pretty far away from git-in-git consequences/use cases. I said the same in another comment here, but I don't envision vdm becoming something that's git-specific or developmental -- it's really just intended to be a getter, not a writer, and the functionality reflects that.
Cool info though, thanks for sharing!
- lelanthran 2y ago> I've got a note at the bottom of the README that I'm considering adding a config field to keep the .git directory, but I'm trying to keep pretty far away from git-in-git consequences/use cases. Maybe a better approach would be to rename the `.git/` to (for example) `.vdm` in each submodule? Each `vdm` command would first rename it back to `.git`, execute the git commands needed, and then rename it back to `.vdm/`. This gives you the ability to implement `vdm history` or similar command while still keeping the submodule invisible to the parent?
- dotancohen 2y agoGit would then version that .vdm/ directory - the repo would grow exponentially.
- fragmede 2y agoyou'd want vdm to be a superset of git commands and then alias git=vdm, or something to avoid that
- dotancohen 2y agoNo, I mean that the larger Git repo, of the main project, would version the .vdm directory.
- goku12 2y agoThe vdm submodule directories would probably have to be entered in the gitignore anyway. You wouldn't want to commit the submodule source files either. Won't the .git directory get excluded that way?