Re: git status during interactive rebase
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 21, 2016, 09:28 UTC
- Message-ID
- <alpine.DEB.2.20.1601211016140.2964@virtualbox>
- In-Reply-To
- <CAGZ79kbUwJ+CN=YoQUP=rm=EhU=fU2ynt_7Q-cd7Dic-bsx+TA@mail.gmail.com>
Hi Stefan,
On Wed, 20 Jan 2016, Stefan Beller wrote:
> So I ran an interactive rebase, and while editing > .git/rebase-merge/git-rebase-todo I tried to run > `git status` in another terminal to inquire about a > filename of an untracked file.
Heh, I don't think that anybody did that before, because the rebase has not even quite started yet...
The cop-out would be to write an empty 'done' file before editing the todo, but it would give the wrong impression that it is safe to run `git rebase --continue` now... Interactive rebase is *definitely* not thread-safe ;-)
So the proper fix might be to test for the presence of the "done" file and otherwise tell the user that this rebase has not even started yet.
Ciao, Dscho