Commit 9ec79b9
committed
read-cache: add/read-cache respect submodule ignore=all
Submodules configured with ignore=all are now skipped during add operations
unless overridden by --include-ignored-submodules and the submodule path is
explicitly specified.
A message is printed (like ignored files) guiding the user to use the
--include-ignored-submodules flag if the user has explicitely want to update
the submodule reference.
The reason for the change is support submodule branch tracking or
similar and git status state nothing and git add should not add either.
The workflow is more logic and similar to regular ignored files even
the submodule is already tracked.
The change opens up a lot of possibilities for submodules to be used
more freely and simular to the repo tool. A submodule can be added for many
more reason and loosely coupled dependencies to the super repo which often
gives the friction of handle the explicit commits and updates without
the need for tracking the submodule sha1 by sha1.
Signed-off-by: Claus Schneider(Eficode) <claus.schneider@eficode.com>1 parent 5796009 commit 9ec79b9
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
3956 | 3958 | | |
3957 | 3959 | | |
3958 | 3960 | | |
3959 | | - | |
| 3961 | + | |
3960 | 3962 | | |
3961 | 3963 | | |
3962 | 3964 | | |
3963 | 3965 | | |
3964 | 3966 | | |
3965 | 3967 | | |
3966 | 3968 | | |
3967 | | - | |
| 3969 | + | |
3968 | 3970 | | |
3969 | 3971 | | |
3970 | 3972 | | |
| |||
3975 | 3977 | | |
3976 | 3978 | | |
3977 | 3979 | | |
| 3980 | + | |
3978 | 3981 | | |
3979 | 3982 | | |
3980 | 3983 | | |
| |||
0 commit comments