diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-10-27 15:24:13 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-10-27 15:24:13 -0700 |
| commit | 92cd390849a6f39c1b8f0c4cade93ef995db71a5 (patch) | |
| tree | ff761cfae46082e90cb34022a99e188a597f1c3e | |
| parent | Merge branch 'rj/branch-edit-desc-unborn' into maint-2.38 (diff) | |
| parent | dir: use fspathncmp() in pl_hashmap_cmp() (diff) | |
| download | git-92cd390849a6f39c1b8f0c4cade93ef995db71a5.tar.gz git-92cd390849a6f39c1b8f0c4cade93ef995db71a5.zip | |
Merge branch 'rs/use-fspathncmp' into maint-2.38
Code clean-up.
* rs/use-fspathncmp:
dir: use fspathncmp() in pl_hashmap_cmp()
Diffstat (limited to '')
| -rw-r--r-- | dir.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) |
