Rename function to __ prefix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
diff --git a/src/index.c b/src/index.c
index 544f337..54db422 100644
--- a/src/index.c
+++ b/src/index.c
@@ -242,7 +242,7 @@ static unsigned int index_merge_mode(
return index_create_mode(mode);
}
-void git_index_set_ignore_case(git_index *index, bool ignore_case)
+void git_index__set_ignore_case(git_index *index, bool ignore_case)
{
index->ignore_case = ignore_case;
@@ -390,7 +390,7 @@ int git_index_set_caps(git_index *index, unsigned int caps)
}
if (old_ignore_case != index->ignore_case) {
- git_index_set_ignore_case(index, index->ignore_case);
+ git_index__set_ignore_case(index, index->ignore_case);
}
return 0;
diff --git a/src/index.h b/src/index.h
index 7fc138d..2beaa63 100644
--- a/src/index.h
+++ b/src/index.h
@@ -48,7 +48,7 @@ extern size_t git_index__prefix_position(git_index *index, const char *path);
extern int git_index_entry__cmp(const void *a, const void *b);
extern int git_index_entry__cmp_icase(const void *a, const void *b);
-extern void git_index_set_ignore_case(git_index *index, bool ignore_case);
+extern void git_index__set_ignore_case(git_index *index, bool ignore_case);
extern int git_index_read_tree_match(
git_index *index, git_tree *tree, git_strarray *strspec);
diff --git a/src/tree.c b/src/tree.c
index decd37e..11123a1 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -582,19 +582,19 @@ int git_tree__write_index(
}
/* The tree cache didn't help us; we'll have to write
- * out a tree. If the index is ignore_case, we'll must
+ * out a tree. If the index is ignore_case, we must
* make it case-sensitive for the duration of the tree-write
* operation. */
if (index->ignore_case) {
old_ignore_case = true;
- git_index_set_ignore_case(index, false);
+ git_index__set_ignore_case(index, false);
}
ret = write_tree(oid, repo, index, "", 0);
if (old_ignore_case)
- git_index_set_ignore_case(index, true);
+ git_index__set_ignore_case(index, true);
return ret < 0 ? ret : 0;
}