Re: [PATCH v5 04/10] add-interactive.c: implement list_and_choose

2019-03-01 Thread Slavica Djukic
On 22-Feb-19 10:46 PM, Junio C Hamano wrote: "Slavica Djukic via GitGitGadget" writes: +#define HEADER_INDENT " " + enum collection_phase { WORKTREE, INDEX @@ -27,6 +29,61 @@ struct collection_status { struct hashmap file_map; }; +struct list_and_choose_op

Re: [PATCH v5 04/10] add-interactive.c: implement list_and_choose

2019-02-22 Thread Junio C Hamano
"Slavica Djukic via GitGitGadget" writes: > +#define HEADER_INDENT " " > + > enum collection_phase { > WORKTREE, > INDEX > @@ -27,6 +29,61 @@ struct collection_status { > struct hashmap file_map; > }; > > +struct list_and_choose_options { > + int column_n; > + u

[PATCH v5 04/10] add-interactive.c: implement list_and_choose

2019-02-20 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic This is one of the two functions translated from Perl script, besides list_modified that will be used by *_cmd functions (including status) to collect index/worktree changes, list those changes and let user make a choice. At this point, it only prints worktree and index chan