Re: [PATCH 11/18] builtin rebase: support `--autostash` option

2018-08-24 Thread Johannes Schindelin
Hi Duy, On Sat, 18 Aug 2018, Duy Nguyen wrote: > On Wed, Aug 8, 2018 at 5:26 PM Pratik Karki wrote: > > @@ -224,13 +219,56 @@ static int read_basic_state(struct rebase_options > > *opts) > > return 0; > > } > > > > +static int apply_autostash(struct rebase_options *opts) > > +{ > > +

Re: [PATCH 11/18] builtin rebase: support `--autostash` option

2018-08-18 Thread Duy Nguyen
On Wed, Aug 8, 2018 at 5:26 PM Pratik Karki wrote: > @@ -224,13 +219,56 @@ static int read_basic_state(struct rebase_options *opts) > return 0; > } > > +static int apply_autostash(struct rebase_options *opts) > +{ > + const char *path = state_dir_path("autostash", opts); > +

[PATCH 11/18] builtin rebase: support `--autostash` option

2018-08-08 Thread Pratik Karki
To support `--autostash` we introduce a function `apply_autostash()` just like in `git-legacy-rebase.sh`. Rather than refactoring and using the same function that exists in `sequencer.c`, we go a different route here, to avoid clashes with the sister GSoC project that turns the interactive rebase