[PATCH 04/45] pathspec: add copy_pathspec

2013-06-09 Thread Nguyễn Thái Ngọc Duy
The function is made to use with free_pathspec() because a simple struct assignment is not enough (free_pathspec wants to free items pointer). Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- builtin/mv.c | 13 +++-- pathspec.c | 8 pathspec.h | 1 + 3 files

Re: [PATCH 04/45] pathspec: add copy_pathspec

2013-06-09 Thread Eric Sunshine
On Sun, Jun 9, 2013 at 2:25 AM, Nguyễn Thái Ngọc Duy pclo...@gmail.com wrote: The function is made to use with free_pathspec() because a simple struct assignment is not enough (free_pathspec wants to free items pointer). I had to read this about five or six times before I could parse and