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

[PATCH 5/5] Revert "excluded_1(): support exclude files in index"

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Nov 26, 2010, 18:17 UTC
Message-ID
<1290795467-7570-6-git-send-email-pclouds@gmail.com>
In-Reply-To
<1290795467-7570-1-git-send-email-pclouds@gmail.com>

This reverts commit c84de70781674a35b9bfd20aa5bc8c47582615df. The commit provided a workaround for matching directories in index. But it is no longer needed.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 dir.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/dir.c b/dir.c
index 39eb7a3..d059aa1 100644
--- a/dir.c
+++ b/dir.c
@@ -371,13 +371,6 @@ int excluded_from_list(const char *pathname,
 			int to_exclude = x->to_exclude;
 
 			if (x->flags & EXC_FLAG_MUSTBEDIR) {
-				if (!dtype) {
-					if (!prefixcmp(pathname, exclude) &&
-					    pathname[x->patternlen] == '/')
-						return to_exclude;
-					else
-						continue;
-				}
 				if (*dtype == DT_UNKNOWN)
 					*dtype = get_dtype(NULL, pathname, pathlen);
 				if (*dtype != DT_DIR)
-- 
1.7.3.2.316.gda8b3
Previous: Nguyễn Thái Ngọc Duy
Message 9 of 9 in “Sparse checkout fixes”
  1. 0/5 Sparse checkout fixesNguyễn Thái Ngọc Duy, Nov 26, 2010
  2. 1/5 cache.h: remove surrounding brackes and realign CE_* constantsNguyễn Thái Ngọc Duy, Nov 26, 2010
  3. Thiago FarinaNov 26, 2010
  4. 1/5 cache.h: realign and use (1 << x) form for CE_* constantsNguyễn Thái Ngọc Duy, Nov 27, 2010
  5. 2/5 dir.c: add free_excludes()Nguyễn Thái Ngọc Duy, Nov 26, 2010
  6. 3/5 unpack-trees: move all skip-worktree checks back to unpack_trees()Nguyễn Thái Ngọc Duy, Nov 26, 2010
  7. 3/5 unpack-trees: move all skip-worktree checks back to unpack_trees()Nguyễn Thái Ngọc Duy, Nov 27, 2010
  8. 4/5 unpack-trees: fix sparse checkout's "unable to match directories"Nguyễn Thái Ngọc Duy, Nov 26, 2010
  9. 5/5 Revert "excluded_1(): support exclude files in index"Nguyễn Thái Ngọc Duy, Nov 26, 2010

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.