From: Junio C Hamano Date: Tue, 28 Apr 2026 01:13:28 +0000 (+0900) Subject: Merge branch 'hn/git-checkout-m-with-stash' into jch X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=1164a4f35ce21796f04cea78a1a70e35552f65ad;p=thirdparty%2Fgit.git Merge branch 'hn/git-checkout-m-with-stash' into jch "git checkout -m another-branch" was invented to deal with local changes to paths that are different between the current and the new branch, but it gave only one chance to resolve conflicts. The command was taught to create a stash to save the local changes. * hn/git-checkout-m-with-stash: checkout -m: autostash when switching branches checkout: rollback lock on early returns in merge_working_tree sequencer: teach autostash apply to take optional conflict marker labels sequencer: allow create_autostash to run silently stash: add --label-ours, --label-theirs, --label-base for apply --- 1164a4f35ce21796f04cea78a1a70e35552f65ad diff --cc builtin/checkout.c index ac0186a33e,d02183b245..188b3af921 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@@ -30,8 -29,8 +29,9 @@@ #include "repo-settings.h" #include "resolve-undo.h" #include "revision.h" + #include "sequencer.h" #include "setup.h" +#include "strvec.h" #include "submodule.h" #include "symlinks.h" #include "trace2.h"