From: Phillip Wood Date: Mon, 19 Aug 2019 09:26:48 GMT Subject: Re: [PATCH 0/2] git rebase: Make sure upstream branch is left alone. Message-ID: <0bef598c-6c89-c699-5290-ee2003db5979@gmail.com> In-Reply-To: <20190818095349.3218-1-ben@wijen.net> Hi Ben On 18/08/2019 10:53, Ben Wijen wrote: > I found an issue with git rebase --autostash with an dirty worktree/index. > It seems the currently active branch is moved, which is not correct. I'm not sure I understand what you mean by "the currently active branch is moved". 'git rebase --autostash ' should checkout (presumably stashing any unstaged and uncommitted changes first) and then do rebase - what's it doing instead? Best Wishes Phillip > The following patches contain both a test and a fix. > > Ben Wijen (2): > t3420: never change upstream branch > rebase.c: make sure current branch isn't moved when autostashing > > builtin/rebase.c | 18 ++++++------------ > t/t3420-rebase-autostash.sh | 13 +++++++++---- > 2 files changed, 15 insertions(+), 16 deletions(-) >