path: root/dir.h
diff options
authorNguyễn Thái Ngọc Duy <>2016-04-22 13:01:24 (GMT)
committerJunio C Hamano <>2016-04-22 21:09:37 (GMT)
commitba0897e6ae6b0b3f259efb31be0f1ab3d820aacf (patch)
tree0f71ac706b2835f86e114cc663cd88994434ba5f /dir.h
parente6ac6e1f7d54584c2b03f073b5f329a37f4a9561 (diff)
dir.c: rename str(n)cmp_icase to fspath(n)cmp
These functions compare two paths that are taken from file system. Depending on the running file system, paths may need to be compared case-sensitively or not, and maybe even something else in future. The current names do not convey that well. Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'dir.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.h b/dir.h
index 301b737..e34d555 100644
--- a/dir.h
+++ b/dir.h
@@ -270,8 +270,8 @@ extern int remove_dir_recursively(struct strbuf *path, int flag);
/* tries to remove the path with empty directories along it, ignores ENOENT */
extern int remove_path(const char *path);
-extern int strcmp_icase(const char *a, const char *b);
-extern int strncmp_icase(const char *a, const char *b, size_t count);
+extern int fspathcmp(const char *a, const char *b);
+extern int fspathncmp(const char *a, const char *b, size_t count);
extern int fnmatch_icase(const char *pattern, const char *string, int flags);