Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-28 01:24:13 +0300
committerJunio C Hamano <gitster@pobox.com>2022-10-28 01:24:13 +0300
commit92cd390849a6f39c1b8f0c4cade93ef995db71a5 (patch)
treeff761cfae46082e90cb34022a99e188a597f1c3e
parent64de207727c296007c85cf7196414cb859141820 (diff)
parentf7669676d0e9aedd814645ca82a5b86980fb7740 (diff)
Merge branch 'rs/use-fspathncmp' into maint-2.38
Code clean-up. * rs/use-fspathncmp: dir: use fspathncmp() in pl_hashmap_cmp()
-rw-r--r--dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dir.c b/dir.c
index 7542950820..d604d1bab9 100644
--- a/dir.c
+++ b/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)