Re: [PATCH v3 02/16] dir: remove struct path_simplify

2017-01-03 Thread Duy Nguyen
On Wed, Dec 14, 2016 at 6:14 AM, Brandon Williams wrote: > @@ -2010,14 +1987,11 @@ static struct untracked_cache_dir > *validate_untracked_cache(struct dir_struct *d > return root; > } > > -int read_directory(struct dir_struct *dir, const char *path, int len, const > struct pathspec *pa

Re: [PATCH v3 02/16] dir: remove struct path_simplify

2016-12-19 Thread Stefan Beller
On Tue, Dec 13, 2016 at 3:14 PM, Brandon Williams wrote: > Teach simplify_away() and exclude_matches_pathspec() to handle struct > pathspec directly, eliminating the need for the struct path_simplify. > > Also renamed the len parameter to pathlen in exclude_matches_pathspec() > to match the parame

[PATCH v3 02/16] dir: remove struct path_simplify

2016-12-13 Thread Brandon Williams
Teach simplify_away() and exclude_matches_pathspec() to handle struct pathspec directly, eliminating the need for the struct path_simplify. Also renamed the len parameter to pathlen in exclude_matches_pathspec() to match the parameter names used in simplify_away(). Signed-off-by: Brandon Williams