]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-am.txt: clarify --abort behavior
authorElijah Newren <newren@gmail.com>
Fri, 10 Sep 2021 10:31:14 +0000 (10:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Sep 2021 22:51:14 +0000 (15:51 -0700)
Both Johannes and I assumed (perhaps due to familiarity with rebase)
that am --abort would return the user to a clean state.  However, since
am, unlike rebase, is intended to be used within a dirty working tree,
--abort will only clean the files involved in the am operation.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-am.txt

index 8714dfcb76220e8c409f3a15042b1d05debd9d9c..0a4a984dfdecda8ef5d252e2a2883f6497f2cb1b 100644 (file)
@@ -178,6 +178,8 @@ default.   You can use `--no-utf8` to override this.
 
 --abort::
        Restore the original branch and abort the patching operation.
+       Revert contents of files involved in the am operation to their
+       pre-am state.
 
 --quit::
        Abort the patching operation but keep HEAD and the index