зеркало из https://github.com/microsoft/git.git
Merge branch 'rs/use-fspathncmp' into maint-2.38
Code clean-up. * rs/use-fspathncmp: dir: use fspathncmp() in pl_hashmap_cmp()
This commit is contained in:
Коммит
92cd390849
4
dir.c
4
dir.c
|
@ -669,9 +669,7 @@ int pl_hashmap_cmp(const void *cmp_data UNUSED,
|
|||
? ee1->patternlen
|
||||
: ee2->patternlen;
|
||||
|
||||
if (ignore_case)
|
||||
return strncasecmp(ee1->pattern, ee2->pattern, min_len);
|
||||
return strncmp(ee1->pattern, ee2->pattern, min_len);
|
||||
return fspathncmp(ee1->pattern, ee2->pattern, min_len);
|
||||
}
|
||||
|
||||
static char *dup_and_filter_pattern(const char *pattern)
|
||||
|
|
Загрузка…
Ссылка в новой задаче