From: Eric Sunshine Date: Fri, 01 Oct 2021 22:47:06 GMT Subject: Re: [PATCH 02/11] reset_head(): fix checkout Message-ID: In-Reply-To: On Fri, Oct 1, 2021 at 6:06 AM Phillip Wood via GitGitGadget wrote: > The reset bit should only be set if flags contains RESET_HEAD_HARD. > The test for `!deatch_head` dates back to the original implementation s/deatch_head/detach_head/ > of reset_head() in ac7f467fef ("builtin/rebase: support running "git > rebase "", 2018-08-07) and was correct until e65123a71d > ("builtin rebase: support `git rebase `", > 2018-09-04) started using reset_head() to checkout when > fast-forwarding. > > Signed-off-by: Phillip Wood