]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'hn/git-checkout-m-with-stash' into next
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2026 04:57:43 +0000 (13:57 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2026 04:57:43 +0000 (13:57 +0900)
commit46adae5e5d37e244347379283ac4a6318a2882cc
tree0ddc6af9d15fffcfc8b2909004a2f71b72b80916
parent1bafedde580b258c4a47b469af071ee7424ce753
parentc07039ebc4bbf2eb6c852fb1280891a448d1bf48
Merge branch 'hn/git-checkout-m-with-stash' into next

"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
builtin/checkout.c