Re: [PATCH v5 03/10] add-interactive.c: implement list_modified

2019-02-22 Thread Slavica Djukic
On 21-Feb-19 9:27 PM, Junio C Hamano wrote: Junio C Hamano writes: A few things I missed in the previous message. + for (i = 0; i < stat.nr; i++) { + struct file_stat *entry; + const char *name = stat.files[i]->name; + unsigned int hash = strh

Re: [PATCH v5 03/10] add-interactive.c: implement list_modified

2019-02-22 Thread Slavica Djukic
On 21-Feb-19 8:06 PM, Junio C Hamano wrote: "Slavica Djukic via GitGitGadget" writes: diff --git a/add-interactive.c b/add-interactive.c new file mode 100644 index 00..7d096207d4 --- /dev/null +++ b/add-interactive.c @@ -0,0 +1,188 @@ +#include "cache.h" +#include "commit.h" +#includ

Re: [PATCH v5 03/10] add-interactive.c: implement list_modified

2019-02-21 Thread Junio C Hamano
Junio C Hamano writes: A few things I missed in the previous message. >> +for (i = 0; i < stat.nr; i++) { >> +struct file_stat *entry; >> +const char *name = stat.files[i]->name; >> +unsigned int hash = strhash(name); >> + >> +entry = hashmap_g

Re: [PATCH v5 03/10] add-interactive.c: implement list_modified

2019-02-21 Thread Junio C Hamano
"Slavica Djukic via GitGitGadget" writes: > diff --git a/add-interactive.c b/add-interactive.c > new file mode 100644 > index 00..7d096207d4 > --- /dev/null > +++ b/add-interactive.c > @@ -0,0 +1,188 @@ > +#include "cache.h" > +#include "commit.h" > +#include "color.h" > +#include "config

[PATCH v5 03/10] add-interactive.c: implement list_modified

2019-02-20 Thread Slavica Djukic via GitGitGadget
From: Slavica Djukic Implement list_modified from Perl, which will be used by most of the *_cmd functions, including status in the following commit. It lists a numstat comparing changed files between a) the worktree and the index; b) the index and the HEAD. To do so, we use run_diff_index() and