On Fri, Nov 18, 2022 at 09:25:58AM +0100, Johannes Schindelin wrote:
> > In git svn documentation 2.38.1 (
https://git-scm.com/docs/git-svn/2.38.1 ),
> > for git svn rebase, it is said that
> > - This accepts all options that git svn fetch and git rebase accept
> > But it doesn't accept *autostash *option. This means that we have to git
> > stash before rebase and git stash pop after rebase.
> >
> > Is this a bug, or can we update documentation accordingly?
Let me digress a bit.
If you need such an option, I would propose to reconsider this aspect of your
approach: the stash was invented as a means to "clear the deck" in a case of
emergency - a model case is your boss crashing in while you're in a middle of
a coding streak, demanding you to immediately fix a bug or something like
this. So, you stash whatever changes there are, switch to a required branch
and start working on that emergency task.
Rebasing is not an emergency situation: in all the cases I can think of, it's
a planned activity, and so you can just create a temporary commit out of your
changes, rebase the normal way and chop that commit off the tip of the rebased
branch using
git reset HEAD~
(the changes will remain in the work tree).