add.c: move pathspec matchers into new pathspec.c for reuse