aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-add.adoc
diff options
context:
space:
mode:
authorClaus Schneider(Eficode) <claus.schneider@eficode.com>2026-02-06 13:23:00 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-06 09:43:26 -0800
commit6cc6d1b4c699323bc2a76e1a4cfbaede242cbfc8 (patch)
treeff9e1ebc884641bbb6dd81c2c29fa2657537debd /Documentation/git-add.adoc
parent902013225cb7120c59b6ef8771db5c266041f6d5 (diff)
downloadgit-6cc6d1b4c699323bc2a76e1a4cfbaede242cbfc8.tar.xz
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) <claus.schneider@eficode.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-add.adoc')
-rw-r--r--Documentation/git-add.adoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-add.adoc b/Documentation/git-add.adoc
index 6192daeb03..941135dc63 100644
--- a/Documentation/git-add.adoc
+++ b/Documentation/git-add.adoc
@@ -75,7 +75,10 @@ in linkgit:gitglossary[7].
`-f`::
`--force`::
- Allow adding otherwise ignored files.
+ Allow adding otherwise ignored files. The option is also used when
+ `submodule.<name>.ignore=all` is set, but you want to stage an
+ update of the submodule. The `path` to the submodule must be explicitly
+ specified.
`--sparse`::
Allow updating index entries outside of the sparse-checkout cone.