pathspec: create strip submodule slash helpers
authorBrandon Williams <redacted>
Wed, 4 Jan 2017 18:04:09 +0000 (10:04 -0800)
committerJunio C Hamano <redacted>
Mon, 9 Jan 2017 02:04:18 +0000 (18:04 -0800)
commit5590215b1392b4f094f60d7db7a3c796b8bc9aae
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 <redacted>
Reviewed-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
pathspec.c
git clone https://git.99rst.org/PROJECT