Hacker News new | ask | show | jobs
by lelanthran 694 days 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?

1 comments

Git would then version that .vdm/ directory - the repo would grow exponentially.
The 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?
you'd want vdm to be a superset of git commands and then alias git=vdm, or something to avoid that
No, I mean that the larger Git repo, of the main project, would version the .vdm directory.