Re: [PATCH 05/45] Add parse_pathspec() that converts cmdline args to struct pathspec

2013-06-09 Thread Eric Sunshine
On Sun, Jun 9, 2013 at 2:25 AM, Nguyễn Thái Ngọc Duy wrote: > diff --git a/pathspec.c b/pathspec.c > index 8fe56cd..b49bd51 100644 > --- a/pathspec.c > +++ b/pathspec.c > @@ -195,15 +195,128 @@ static const char *prefix_pathspec(const char *prefix, > int prefixlen, const char > +/* > + * Given co

[PATCH 05/45] Add parse_pathspec() that converts cmdline args to struct pathspec

2013-06-08 Thread Nguyễn Thái Ngọc Duy
Currently to fill a struct pathspec, we do: const char **paths; paths = get_pathspec(prefix, argv); ... init_pathspec(&pathspec, paths); "paths" can only carry bare strings, which loses information from command line arguments such as pathspec magic or the prefix part's length for each