You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use gita to automatically checkout a large tree of repos. We commit the gita config csvs and freeze file to our meta repo to share them across the the team. This works really well.
However some repos have submodules, and these submodules are picked up by gita add -a. This isn't ideal as we don't want gita to manage/checkout these repos.
Would it be possible to add a flag to gita add -a to ignore .git dirs that are submodules? Or, as an alternative, would it be possible to specify an ignore file with wildcard paths that gita should ignore? The latter might be easier (and more flexible) than implementing parsing of .gitmodules files.
The text was updated successfully, but these errors were encountered:
It seems easy to add an option to skip submodules (as well as worktree repos). Normal git repos have their .git as folders, but submodule and worktree repos have .git as files with the following content. Thus we can check for .git/modules/ in the .git file.
The ignore file seems to require more work to implement. I imagine we need to read patterns from a file then match all of them say using re to each repo path. Let me know if you have a better implementation in mind.
We use gita to automatically checkout a large tree of repos. We commit the gita config csvs and freeze file to our meta repo to share them across the the team. This works really well.
However some repos have submodules, and these submodules are picked up by
gita add -a
. This isn't ideal as we don't want gita to manage/checkout these repos.Would it be possible to add a flag to
gita add -a
to ignore .git dirs that are submodules? Or, as an alternative, would it be possible to specify an ignore file with wildcard paths that gita should ignore? The latter might be easier (and more flexible) than implementing parsing of .gitmodules files.The text was updated successfully, but these errors were encountered: