Re: [PATCH v2] checkout: avoid unnecessary match_pathspec calls

2013-03-25 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > In checkout_paths() we do this > > - for all updated items, call match_pathspec > - for all items, call match_pathspec (inside unmerge_cache) > - for all items, call match_pathspec (for showing "path .. is unmerged) > - for updated items, call match_pathspec an

[PATCH v2] checkout: avoid unnecessary match_pathspec calls

2013-03-24 Thread Nguyễn Thái Ngọc Duy
In checkout_paths() we do this - for all updated items, call match_pathspec - for all items, call match_pathspec (inside unmerge_cache) - for all items, call match_pathspec (for showing "path .. is unmerged) - for updated items, call match_pathspec and update paths That's a lot of duplicate m