Re: [PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-19 Thread Junio C Hamano
Johannes Schindelin writes: > On Tue, 13 Dec 2016, Junio C Hamano wrote: > >> Linus Torvalds writes: >> >> > On Tue, Dec 13, 2016 at 12:38 PM, Junio C Hamano wrote: >> >> Johannes Schindelin

Re: [PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-19 Thread Johannes Schindelin
Hi Junio, On Tue, 13 Dec 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > @@ -1292,7 +1316,12 @@ static int pick_commits(struct todo_list *todo_list, > > struct replay_opts *opts) > > struct todo_item *item = todo_list->items +

Re: [PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-19 Thread Johannes Schindelin
Hi, On Tue, 13 Dec 2016, Junio C Hamano wrote: > Linus Torvalds writes: > > > On Tue, Dec 13, 2016 at 12:38 PM, Junio C Hamano wrote: > >> Johannes Schindelin writes: > >> > >>> +/* > >>> + * Note that ordering

Re: [PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-13 Thread Junio C Hamano
Linus Torvalds writes: > On Tue, Dec 13, 2016 at 12:38 PM, Junio C Hamano wrote: >> Johannes Schindelin writes: >> >>> +/* >>> + * Note that ordering matters in this enum. Not only must it match the >>> mapping >>>

Re: [PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-13 Thread Linus Torvalds
On Tue, Dec 13, 2016 at 12:38 PM, Junio C Hamano wrote: > Johannes Schindelin writes: > >> +/* >> + * Note that ordering matters in this enum. Not only must it match the >> mapping >> + * below, it is also divided into several sections that matter.

Re: [PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-13 Thread Junio C Hamano
Johannes Schindelin writes: > +/* > + * Note that ordering matters in this enum. Not only must it match the > mapping > + * below, it is also divided into several sections that matter. When adding > + * new commands, make sure you add it in the right section. > + */

[PATCH v2 02/34] sequencer (rebase -i): implement the 'noop' command

2016-12-13 Thread Johannes Schindelin
The 'noop' command is probably the most boring of all rebase -i commands to support in the sequencer. Which makes it an excellent candidate for this first stab to add support for rebase -i's commands to the sequencer. For the moment, let's also treat empty lines and commented-out lines as