Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-15 Thread Duy Nguyen
On Mon, Mar 16, 2015 at 4:16 AM, Junio C Hamano wrote: > Duy Nguyen writes: > >> Exactly. We would need to sort and stuff later on, so true filenames >> are preserved in util->item. A cleaner way is perhaps carry all >> metadata in item->util and item->string remains true filename, then do >> all

Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-15 Thread Junio C Hamano
Duy Nguyen writes: > Exactly. We would need to sort and stuff later on, so true filenames > are preserved in util->item. A cleaner way is perhaps carry all > metadata in item->util and item->string remains true filename, then do > all the formatting, coloring for all strings just before displayin

Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-14 Thread Duy Nguyen
On Fri, Mar 13, 2015 at 4:28 AM, Junio C Hamano wrote: > Junio C Hamano writes: > >>> static struct pathspec pathspec; >>> static const char *prefix; >>> @@ -22,7 +23,7 @@ static void add_one(struct string_list *result, const >>> char *name) >>> struct strbuf sb = STRBUF_INIT; >>> st

Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-12 Thread Junio C Hamano
Junio C Hamano writes: >> static struct pathspec pathspec; >> static const char *prefix; >> @@ -22,7 +23,7 @@ static void add_one(struct string_list *result, const char >> *name) >> struct strbuf sb = STRBUF_INIT; >> struct string_list_item *item; >> >> -strbuf_addstr(&sb, name

Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > builtin/list-files.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/builtin/list-files.c b/builtin/list-files.c > index b99f2b7..c444a53 100644 > --- a/builtin/list-files.c > +++ b/builtin/li

[PATCH 03/16] list-files: show paths relative to cwd

2015-03-09 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/list-files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/list-files.c b/builtin/list-files.c index b99f2b7..c444a53 100644 --- a/builtin/list-files.c +++ b/builtin/list-files.c @@ -3,6 +3,7 @@ #include "parse-optio