]> git.ipfire.org Git - thirdparty/git.git/commit - git-am.sh
git am --skip: clean the index while preserving local changes
authorOlivier Marin <dkr@freesurf.fr>
Mon, 21 Jul 2008 13:39:06 +0000 (15:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jul 2008 07:06:04 +0000 (00:06 -0700)
commit95f8ebbfc7997b3114d4f09360501324905c4e6d
tree905c1d73221181f53840b5d7a995581181f30030
parentd1f63a37caae19314bbd55c9fe3554d2e53537e7
git am --skip: clean the index while preserving local changes

In 3-way merge, "am" will let the index with unmerged path waiting
for us to resolve conflicts and continue. But if we want to --skip
instead, "am" refuses to continue because of the dirty index.

With this patch, "am" will clean the index without touching files
locally modified, before continuing.

Signed-off-by: Olivier Marin <dkr@freesurf.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh
t/t4151-am-abort.sh