Re: [PATCH] checkout: add --autostash option for branch switching
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 14, 2026, 13:29 UTC
- Message-ID
- <xmqqmrz5eklt.fsf@gitster.g>
- In-Reply-To
- <20260414072950.61240-1-haraldnordgren@gmail.com>
Harald Nordgren <haraldnordgren@gmail.com> writes:
> Sounds reasonable, but wouldn't it make more sense to call it "autostash > from master". We should still be able to abort the merge and merge it to > some other branch. I feel like the source is more relevant than the > destination, no?
The new comment is for reminder, so "I made this while switching from 'master' to this new 'topic'" theoretically has more reminding value than "I made this while switching to this new 'topic'". As I outlined my workflow, I usually am on 'master' or 'next' when I end up needing "co -m" option, so "I was on 'master' when I stashed this" has a much weaker reminding value. Just like a series of "autostash" without any context comment irritated me, I'll see many "autostash on master" that I cannot quite distinguish.
But that may be just me.