mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
ls-tree: disable negative pathspec because it's not supported
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
1cf9952db2
commit
5c6cb9888d
|
@ -174,7 +174,8 @@ int cmd_ls_tree(int argc, const char **argv, const char *prefix)
|
||||||
* cannot be lifted until it is converted to use
|
* cannot be lifted until it is converted to use
|
||||||
* match_pathspec() or tree_entry_interesting()
|
* match_pathspec() or tree_entry_interesting()
|
||||||
*/
|
*/
|
||||||
parse_pathspec(&pathspec, PATHSPEC_GLOB | PATHSPEC_ICASE,
|
parse_pathspec(&pathspec, PATHSPEC_GLOB | PATHSPEC_ICASE |
|
||||||
|
PATHSPEC_EXCLUDE,
|
||||||
PATHSPEC_PREFER_CWD,
|
PATHSPEC_PREFER_CWD,
|
||||||
prefix, argv + 1);
|
prefix, argv + 1);
|
||||||
for (i = 0; i < pathspec.nr; i++)
|
for (i = 0; i < pathspec.nr; i++)
|
||||||
|
|
Loading…
Reference in a new issue