pathspec: create strip submodule slash helpers
commit5590215b1392b4f094f60d7db7a3c796b8bc9aae
authorBrandon Williams <bmwill@google.com>
Wed, 4 Jan 2017 18:04:09 +0000 (4 10:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jan 2017 02:04:18 +0000 (8 18:04 -0800)
tree459498fa91cbf47f628d07f12c969b13bb9391b4
parent1b6112c527be607f56a674301b413af16aa186c6
pathspec: create strip submodule slash helpers

Factor out the logic responsible for stripping the trailing slash on
pathspecs referencing submodules into its own function.

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>
pathspec.c