Re: git checkout --autostash and git branch --autopop
- From
Philip Oakley <philipoakley@iee.email>
- Date
- Dec 12, 2019, 22:02 UTC
- Message-ID
- <e7850a51-4396-4698-ed98-62f991e33992@iee.email>
- In-Reply-To
- <20191212180901.GA35927@generichostname>
On 12/12/2019 18:09, Denton Liu wrote:
Show 11 quoted lines
> Hi rottis, > > On Thu, Dec 12, 2019 at 02:19:50PM +0200, rottis@fea.st wrote: >> Similar to the 'git rebase --autostash', running 'git checkout --autostash' would automatically stash uncommitted changes for the >> current branch. then running 'git branch --autopop' would automatically apply an automatic stash when switching to a branch that had one. > I currently have a WIP version of this feature but I haven't had enough > time to polish it off (tests and docs). The last RFC round can be seen > here[1] if you want to test it out. It seems to work well enough for > personal use. > > [1]: https://lore.kernel.org/git/cover.1571246693.git.liu.denton@gmail.com/
Isn't this meant to be something similar to the --no-merge option for checkout. That is: I am where I am, but really I want this to be on branch X. Or is the --no-merge option meant to be something else? -- Philip