Skip to content

Commit 79598c6

Browse files
committed
update documentation for add and gitmodules
1 parent a56d8b8 commit 79598c6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Documentation/git-add.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ in linkgit:gitglossary[7].
7777

7878
`-f`::
7979
`--force`::
80-
Allow adding otherwise ignored files.
80+
Allow adding otherwise ignored files. The option is also used
81+
when you update to submodules and `submodule.<name>.ignore=all`
82+
is set.
8183

8284
`--sparse`::
8385
Allow updating index entries outside of the sparse-checkout cone.

Documentation/gitmodules.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ submodule.<name>.ignore::
7070
--
7171
all;; The submodule will never be considered modified (but will
7272
nonetheless show up in the output of status and commit when it has
73-
been staged).
73+
been staged). Add `(new commits)` can be overruled using the
74+
`git add --force` similar to ignored files. For `status`,
75+
`update-index`, `diff` and `log`(due to underlaying `diff`)
7476

7577
dirty;; All changes to the submodule's work tree will be ignored, only
7678
committed differences between the `HEAD` of the submodule and its

0 commit comments

Comments
 (0)