Skip to content

Commit cb53669

Browse files
committed
Rename function to __ prefix
1 parent 3f0d0c8 commit cb53669

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static unsigned int index_merge_mode(
242242
return index_create_mode(mode);
243243
}
244244

245-
void git_index_set_ignore_case(git_index *index, bool ignore_case)
245+
void git_index__set_ignore_case(git_index *index, bool ignore_case)
246246
{
247247
index->ignore_case = ignore_case;
248248

@@ -390,7 +390,7 @@ int git_index_set_caps(git_index *index, unsigned int caps)
390390
}
391391

392392
if (old_ignore_case != index->ignore_case) {
393-
git_index_set_ignore_case(index, index->ignore_case);
393+
git_index__set_ignore_case(index, index->ignore_case);
394394
}
395395

396396
return 0;

src/index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern size_t git_index__prefix_position(git_index *index, const char *path);
4848
extern int git_index_entry__cmp(const void *a, const void *b);
4949
extern int git_index_entry__cmp_icase(const void *a, const void *b);
5050

51-
extern void git_index_set_ignore_case(git_index *index, bool ignore_case);
51+
extern void git_index__set_ignore_case(git_index *index, bool ignore_case);
5252

5353
extern int git_index_read_tree_match(
5454
git_index *index, git_tree *tree, git_strarray *strspec);

src/tree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,19 +582,19 @@ int git_tree__write_index(
582582
}
583583

584584
/* The tree cache didn't help us; we'll have to write
585-
* out a tree. If the index is ignore_case, we'll must
585+
* out a tree. If the index is ignore_case, we must
586586
* make it case-sensitive for the duration of the tree-write
587587
* operation. */
588588

589589
if (index->ignore_case) {
590590
old_ignore_case = true;
591-
git_index_set_ignore_case(index, false);
591+
git_index__set_ignore_case(index, false);
592592
}
593593

594594
ret = write_tree(oid, repo, index, "", 0);
595595

596596
if (old_ignore_case)
597-
git_index_set_ignore_case(index, true);
597+
git_index__set_ignore_case(index, true);
598598

599599
return ret < 0 ? ret : 0;
600600
}

0 commit comments

Comments
 (0)