]> git.ipfire.org Git - thirdparty/git.git/commit
Remove ignored files by default when they are in the way
authorElijah Newren <newren@gmail.com>
Mon, 27 Sep 2021 16:33:43 +0000 (16:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2021 20:38:37 +0000 (13:38 -0700)
commit1b5f37334a2603c7134da7accba76276d8d31cf6
treec4eb6651858eebdb79be5c6f614f13cca9b09786
parentc42e0b64093306d59372df288f9b4086290623f5
Remove ignored files by default when they are in the way

Change several commands to remove ignored files by default when they are
in the way.  Since some commands (checkout, merge) take a
--no-overwrite-ignore option to allow the user to configure this, and it
may make sense to add that option to more commands (and in the case of
merge, actually plumb that configuration option through to more of the
backends than just the fast-forwarding special case), add little
comments about where such flags would be used.

Incidentally, this fixes a test failure in t7112.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c
builtin/clone.c
builtin/merge.c
builtin/reset.c
builtin/stash.c
merge-ort.c
reset.c
sequencer.c
t/t7112-reset-submodule.sh