From 6cc6d1b4c699323bc2a76e1a4cfbaede242cbfc8 Mon Sep 17 00:00:00 2001 From: "Claus Schneider(Eficode)" Date: Fri, 6 Feb 2026 13:23:00 +0000 Subject: Documentation: update add --force option + ignore=all config - git-add.adoc: Update the --force documentation for submodule behaviour to be added even the given configuration ignore=all. - gitmodules.adoc and config/submodule.adoc: The submodule config ignore=all now need --force in order to update the index. Signed-off-by: Claus Schneider(Eficode) Signed-off-by: Junio C Hamano --- Documentation/gitmodules.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Documentation/gitmodules.adoc') diff --git a/Documentation/gitmodules.adoc b/Documentation/gitmodules.adoc index d9bec8b187..3792da96aa 100644 --- a/Documentation/gitmodules.adoc +++ b/Documentation/gitmodules.adoc @@ -70,7 +70,10 @@ submodule..ignore:: -- all;; The submodule will never be considered modified (but will nonetheless show up in the output of status and commit when it has - been staged). + been staged). Add `(new commits)` can be overruled using the + `git add --force `. + The setting affects `status`, `update-index`, `diff` and `log`(due + to underlaying `diff`). dirty;; All changes to the submodule's work tree will be ignored, only committed differences between the `HEAD` of the submodule and its -- cgit v1.3