Re: [PATCH v2 09/19] ls-files.c: use index api

2013-07-17 Thread Thomas Gummerer
Duy Nguyen writes: > On Sat, Jul 13, 2013 at 12:26 AM, Thomas Gummerer > wrote: >> + if (!with_tree) { >> + memset(opts, 0, sizeof(*opts)); >> + opts->pathspec = &pathspec_struct; >> + opts->read_staged = 1; >> + if (show_resolve_und

Re: [PATCH v2 09/19] ls-files.c: use index api

2013-07-13 Thread Duy Nguyen
On Sat, Jul 13, 2013 at 12:26 AM, Thomas Gummerer wrote: > + if (!with_tree) { > + memset(opts, 0, sizeof(*opts)); > + opts->pathspec = &pathspec_struct; > + opts->read_staged = 1; > + if (show_resolve_undo) > + op

[PATCH v2 09/19] ls-files.c: use index api

2013-07-12 Thread Thomas Gummerer
Use the index api to read only part of the index, if the on-disk version of the index is index-v5. Signed-off-by: Thomas Gummerer --- builtin/ls-files.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/builtin/ls-files.c b/builtin/ls-files.c i