Skip to content

Commit 9d223d4

Browse files
pcloudsgitster
authored andcommitted
doc: document --overwrite-ignore
I added this option in git-checkout and git-merge in c1d7036 (checkout,merge: disallow overwriting ignored files with --no-overwrite-ignore - 2011-11-27) but did not remember to update documentation. This completes that commit. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 37f8002 commit 9d223d4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Documentation/git-checkout.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ Note that this option uses the no overlay mode by default (see also
271271
out anyway. In other words, the ref can be held by more than one
272272
worktree.
273273

274+
--overwrite-ignore::
275+
--no-overwrite-ignore::
276+
Silently overwrite ignored files when switching branches. This
277+
is the default behavior. Use `--no-overwrite-ignore` to abort
278+
the operation when the new branch contains ignored files.
279+
274280
--recurse-submodules::
275281
--no-recurse-submodules::
276282
Using --recurse-submodules will update the content of all initialized

Documentation/git-merge.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ will be appended to the specified message.
8787
Allow the rerere mechanism to update the index with the
8888
result of auto-conflict resolution if possible.
8989

90+
--overwrite-ignore::
91+
--no-overwrite-ignore::
92+
Silently overwrite ignored files from the merge result. This
93+
is the default behavior. Use `--no-overwrite-ignore` to abort.
94+
9095
--abort::
9196
Abort the current conflict resolution process, and
9297
try to reconstruct the pre-merge state.

0 commit comments

Comments
 (0)