Re: [PATCH 2/2] checkout -m: refine autostash fallback
Junio C Hamano <[email protected]> Tue, 28 Jul 2026 15:49:20 -0700
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
"Harald Nordgren via GitGitGadget" <[email protected]> writes: > From: Harald Nordgren <[email protected]> > > When unpack_trees() fails under "git checkout -m", only create an > autostash and retry if there are tracked local changes. Without such > changes, the fallback cannot help and merely repeats the same failure. > > Use the conflict result from apply_autostash_ref() to print a blank line > before the branch-switch message, visually separating it from the > conflict advice. > > Signed-off-by: Harald Nordgren <[email protected]> > --- > builtin/checkout.c | 17 +++++++++++++---- > t/t7201-co.sh | 17 ++++++++++++++++- > 2 files changed, 29 insertions(+), 5 deletions(-) Thanks. Will queue.