From: Eric Sunshine Date: Sun, 21 Aug 2022 04:52:53 GMT Subject: Re: [PATCH 1/2] merge: only apply autostash when appropriate Message-ID: In-Reply-To: <92840bf63782ca302e9d48a12faf7d4f5b3cc2d5.1661056709.git.gitgitgadget@gmail.com> On Sun, Aug 21, 2022 at 12:41 AM Elijah Newren via GitGitGadget wrote: > If a merge failed and we are leaving conflicts in the working directory > for the user to resolve, we should not attempt to apply any autostash. > > Further, if we fail to apply the autostash (because either the merge > failed, or the user requested --no-commit), then we should instruct the > user how to apply it later. > > Add a testcase verifying we have corrected this behavior. > > Signed-off-by: Elijah Newren > --- > diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh > @@ -255,6 +255,15 @@ test_expect_success 'merge --squash c3 with c7' ' > +test_expect_success 'merge --squash --autostash conflict does not attempt to play autostash' ' Did you mean s/play/apply/ ?