Re: [GSoC][RFC PATCH] clone: use dir-iterator to avoid explicit dir traversal

2019-02-15 Thread Christian Couder
On Thu, Feb 14, 2019 at 11:04 PM Matheus Tavares Bernardino wrote: > > On Thu, Feb 14, 2019 at 7:16 PM Christian Couder > wrote: > > > -static void copy_or_link_directory(struct strbuf *src, struct strbuf > > > *dest, > > > - const char *src_repo, int src_basele

Re: [GSoC][RFC PATCH] clone: use dir-iterator to avoid explicit dir traversal

2019-02-14 Thread Matheus Tavares Bernardino
On Thu, Feb 14, 2019 at 7:16 PM Christian Couder wrote: > > On Thu, Feb 14, 2019 at 1:16 PM Matheus Tavares > wrote: > > > > Replace usage of opendir/readdir/closedir API to traverse directories > > recursively, at copy_or_link_directory function, by the dir-iterator > > API. > > > > Signed-off-b

Re: [GSoC][RFC PATCH] clone: use dir-iterator to avoid explicit dir traversal

2019-02-14 Thread Christian Couder
On Thu, Feb 14, 2019 at 1:16 PM Matheus Tavares wrote: > > Replace usage of opendir/readdir/closedir API to traverse directories > recursively, at copy_or_link_directory function, by the dir-iterator > API. > > Signed-off-by: Matheus Tavares > --- > This is my microproject for GSoC 2019. It's sti

[GSoC][RFC PATCH] clone: use dir-iterator to avoid explicit dir traversal

2019-02-13 Thread Matheus Tavares
Replace usage of opendir/readdir/closedir API to traverse directories recursively, at copy_or_link_directory function, by the dir-iterator API. Signed-off-by: Matheus Tavares --- This is my microproject for GSoC 2019. It's still a RFC because I have some questions. Any help will be much appreci