@@ -645,7 +645,7 @@ int is_excluded_from_list(const char *pathname,
645
645
return -1 ; /* undecided */
646
646
}
647
647
648
- static int excluded (struct dir_struct * dir , const char * pathname , int * dtype_p )
648
+ static int is_excluded (struct dir_struct * dir , const char * pathname , int * dtype_p )
649
649
{
650
650
int pathlen = strlen (pathname );
651
651
int st ;
@@ -695,7 +695,7 @@ int is_path_excluded(struct path_exclude_check *check,
695
695
/*
696
696
* we allow the caller to pass namelen as an optimization; it
697
697
* must match the length of the name, as we eventually call
698
- * excluded () on the whole name string.
698
+ * is_excluded () on the whole name string.
699
699
*/
700
700
if (namelen < 0 )
701
701
namelen = strlen (name );
@@ -712,7 +712,7 @@ int is_path_excluded(struct path_exclude_check *check,
712
712
713
713
if (ch == '/' ) {
714
714
int dt = DT_DIR ;
715
- if (excluded (check -> dir , path -> buf , & dt ))
715
+ if (is_excluded (check -> dir , path -> buf , & dt ))
716
716
return 1 ;
717
717
}
718
718
strbuf_addch (path , ch );
@@ -721,7 +721,7 @@ int is_path_excluded(struct path_exclude_check *check,
721
721
/* An entry in the index; cannot be a directory with subentries */
722
722
strbuf_setlen (path , 0 );
723
723
724
- return excluded (check -> dir , name , dtype );
724
+ return is_excluded (check -> dir , name , dtype );
725
725
}
726
726
727
727
static struct dir_entry * dir_entry_new (const char * pathname , int len )
@@ -1021,7 +1021,7 @@ static enum path_treatment treat_one_path(struct dir_struct *dir,
1021
1021
const struct path_simplify * simplify ,
1022
1022
int dtype , struct dirent * de )
1023
1023
{
1024
- int exclude = excluded (dir , path -> buf , & dtype );
1024
+ int exclude = is_excluded (dir , path -> buf , & dtype );
1025
1025
if (exclude && (dir -> flags & DIR_COLLECT_IGNORED )
1026
1026
&& exclude_matches_pathspec (path -> buf , path -> len , simplify ))
1027
1027
dir_add_ignored (dir , path -> buf , path -> len );
0 commit comments