]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir: remove struct path_simplify
authorBrandon Williams <bmwill@google.com>
Wed, 4 Jan 2017 18:03:57 +0000 (10:03 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jan 2017 02:04:17 +0000 (18:04 -0800)
commite1b8c7bdc0ceba64e4d9fa91b951af3d1de18870
treeacb7d5034ce72c862e882296e0a49ea79df8416d
parent2ec87741b2d2935542b13d407fbeedbe0a7af094
dir: remove struct path_simplify

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 <bmwill@google.com>
Reviewed-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c