pathspec: drop "lone : means no pathspec" from get_pathspec()

We may want to give the pathspec subsystem such a feature, but not while we are still using get_pathspec() that returns a stupid "char **" that loses subtle nuances that existed in the input string. In the meantime, the callers of get_pathspec() that want to support it could do an equivalent before feeding their argv[] to the function themselves quite easily. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed May 10, 2011 at 12:07 UTC b060ce7de42b357af013909039da3f08a68f3c0b
1 file changed -3
setup.c
-3
@@ -197,9 +197,6 @@ const char *prefix_pathspec(const char *prefix, int prefixlen, const char *elt)
197 }
198 if (*copyfrom == ')')
199 copyfrom++;
200 - } else if (!elt[1]) {
201 - /* Just ':' -- no element! */
202 - return NULL;
200 } else {
201 /* shorthand */
202 for (copyfrom = elt + 1;