Skip to content

Commit

Permalink
Revert "excluded_1(): support exclude files in index"
Browse files Browse the repository at this point in the history
This reverts commit c84de70.
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Dec 1, 2010
1 parent 9037026 commit 9e08273
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e08273

Please sign in to comment.