git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/3] ls-tree: disable negative pathspec because it's not supported

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Nov 30, 2014, 09:05 UTC
Message-ID
<1417338302-8208-4-git-send-email-pclouds@gmail.com>
In-Reply-To
<1417338302-8208-1-git-send-email-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 builtin/ls-tree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/builtin/ls-tree.c b/builtin/ls-tree.c
index 053edb2..3b04a0f 100644
--- a/builtin/ls-tree.c
+++ b/builtin/ls-tree.c
@@ -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
 	 * 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,
 		       prefix, argv + 1);
 	for (i = 0; i < pathspec.nr; i++)
-- 
2.2.0.60.gb7b3c64
Previous: Nguyễn Thái Ngọc DuyNext: Junio C Hamano
Message 9 of 11 in “ls-tree fixes”
  1. 0/3 ls-tree fixesNguyễn Thái Ngọc Duy, Nov 30, 2014
  2. 1/3 tree.c: update read_tree_recursive callback to pass strbuf as baseNguyễn Thái Ngọc Duy, Nov 30, 2014
  3. Junio C HamanoDec 1, 2014
  4. Duy NguyenDec 2, 2014
  5. Eric SunshineDec 3, 2014
  6. Junio C HamanoDec 3, 2014
  7. Duy NguyenDec 8, 2014
  8. 2/3 ls-tree: remove path filtering logic in show_treeNguyễn Thái Ngọc Duy, Nov 30, 2014
  9. 3/3 ls-tree: disable negative pathspec because it's not supportedNguyễn Thái Ngọc Duy, Nov 30, 2014
  10. Junio C HamanoDec 1, 2014
  11. Duy NguyenDec 2, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.