Commit b815e29
committed
read-cache: update submodule need --force given ignore=all configuration
Submodules configured with ignore=all are now skipped during add operations
unless overridden by --force and the submodule path is explicitly specified.
A message is printed (like ignored files) guiding the user to use the
--force 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 states nothing and git add should not add either
as a default behaviour. 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) <[email protected]>1 parent 2e5242e commit b815e29
1 file changed
+7
-4
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 | | |
| |||
3955 | 3957 | | |
3956 | 3958 | | |
3957 | 3959 | | |
3958 | | - | |
3959 | | - | |
| 3960 | + | |
| 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