]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
pathspec: remove PATHSPEC_STRIP_SUBMODULE_SLASH_EXPENSIVE flag
authorBrandon Williams <bmwill@google.com>
Thu, 11 May 2017 22:04:24 +0000 (15:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 May 2017 05:23:46 +0000 (14:23 +0900)
commitc08397e3aa46fd0f0da29dfe5b257839b9c5d1c8
tree7b86e30521606f9953e249db7dd3792d3eb4fe62
parentbdab972153a73815e04e9699406433e409ed28ab
pathspec: remove PATHSPEC_STRIP_SUBMODULE_SLASH_EXPENSIVE flag

Since (ae8d08242 pathspec: pass directory indicator to
match_pathspec_item()) the path matching logic has been able to cope
with submodules without needing to strip off a trailing slash if a path
refers to a submodule.

Since the stripping the trailing slash is no longer necessary, remove
the PATHSPEC_STRIP_SUBMODULE_SLASH_EXPENSIVE flag.  In addition, factor
out the logic which dies if a path decends into a submodule so that it
can still be used as a check after a pathspec struct has been
initialized.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
builtin/check-ignore.c
pathspec.c
pathspec.h
submodule.c
submodule.h