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

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-01-10 04:02:42 +0400
committerRussell Belfer <rb@github.com>2013-01-15 21:51:35 +0400
commit23594c1dae08c9a53f571dbf9de7ff0b6a6a0d45 (patch)
tree15b1395fcabbdefba9fa24051d6a49a998685cc0 /src/path.h
parent851ad65081793bb5fd65052907bf1c3c4e7e5729 (diff)
Add git_path_icmp to case-insensitive path cmp
This adds git_path_icmp to complement git_path_cmp.
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/path.h b/src/path.h
index de0a40b53..feefd65d1 100644
--- a/src/path.h
+++ b/src/path.h
@@ -261,12 +261,17 @@ extern int git_path_direach(
void *state);
/**
- * Sort function to order two paths.
+ * Sort function to order two paths
*/
extern int git_path_cmp(
const char *name1, size_t len1, int isdir1,
const char *name2, size_t len2, int isdir2);
+/** Path sort function that is case insensitive */
+extern int git_path_icmp(
+ const char *name1, size_t len1, int isdir1,
+ const char *name2, size_t len2, int isdir2);
+
/**
* Invoke callback up path directory by directory until the ceiling is
* reached (inclusive of a final call at the root_path).