emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On the adoption of transient.el


From: Arthur Miller
Subject: Re: On the adoption of transient.el
Date: Sat, 14 Aug 2021 05:17:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jonas Bernoulli <jonas@bernoul.li> writes:

>> I have to run Magit than bb and than Magit will offer a completing
>> read which will pop the asked Helm interface. To me this is not a
>> straightforward enough
>
>   (global-set-key [f1] 'magit-checkout)
>
> Also you generally don't have to "run Magit" and can just use "C-x M-g"
> and in file-visiting buffers also "C-c M-g".

Hi Jonas, I have tried your magit-checkout now. It does not really do
what I had in mind. It seems to just be a wrapper around git checkout,
and similar to git checkout gives error if there are unstaged changes.

What I wanted was a fast straightforward branch switcher, no questions
asked.

The strategy is to stash save all buffers belonging to the project,
stash everything, inclusive untracked files, and than checkout to the
other branch. When checked back, the stash is applied back. I don't know
if you have something like that in magit or if it is something generally
desirable, but I always wanted something simple and dirty to be able to
switch fast when I need it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]