diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-10 12:07:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-10 12:07:12 -0700 |
commit | b060ce7de42b357af013909039da3f08a68f3c0b (patch) | |
tree | 992c047108c70dea103c7843c6b398734170248a /setup.c | |
parent | 6d9429271013898df103f7e77ed0736cdfab01b8 (diff) | |
download | git-b060ce7de42b357af013909039da3f08a68f3c0b.tar.gz |
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>
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -197,9 +197,6 @@ const char *prefix_pathspec(const char *prefix, int prefixlen, const char *elt) } if (*copyfrom == ')') copyfrom++; - } else if (!elt[1]) { - /* Just ':' -- no element! */ - return NULL; } else { /* shorthand */ for (copyfrom = elt + 1; |