Re: [PATCH 00/19] Add new command "switch"
- Date: Thu, 31 Jan 2019 10:23:13 -0800
- From: Junio C Hamano <gitster@xxxxxxxxx>
- Subject: Re: [PATCH 00/19] Add new command "switch"
Duy Nguyen <pclouds@xxxxxxxxx> writes:
>> Adding '--soft|--hard' from 'git reset' would go in the opposite
> If it's about the confusion, I think we can avoid it. If it's about
> the one-command-do-all, I think it still fits in the main topic of
> git-switch, which is about switching. But in git-reset case it's
> switching HEAD, not a normal branch.
I do not think "switch branch" should update HEAD for the branch.
Let it be handled by "reset" (or "branch -f that-other-branch").
I personally did not have "it is way too overloaded" problem with
"checkout", but it turns out that many others found it so. You'll
see the same happen for your "switch" if you do not resist
temptation to add unrelated things (or things you may find related
but you see others find unrelated even in this early discussion).