summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorScott J. Goldman <scottjg@github.com>2012-11-15 23:28:52 -0800
committerScott J. Goldman <scottjg@github.com>2012-11-15 23:28:52 -0800
commit0cd063fd87eab711e1bbc8f65ec32a66fb6a5147 (patch)
tree78316e7028dd8be02de759b61cdf769f778e0800 /src/diff.c
parent96acc0b615cf7decd807a6f5741d25bd87ffd751 (diff)
parent402b92cfe98882693a062bd94305383c55777619 (diff)
downloadlibgit2-0cd063fd87eab711e1bbc8f65ec32a66fb6a5147.tar.gz
Merge pull request #1071 from arrbee/alternate-fix-strcmp
Win32 fixes for diff/checkout/reset
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/diff.c b/src/diff.c
index 9cd6c1609..d6f5bd454 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -554,15 +554,15 @@ static int diff_list_init_from_iterators(
if (!old_iter->ignore_case && !new_iter->ignore_case) {
diff->opts.flags &= ~GIT_DIFF_DELTAS_ARE_ICASE;
- diff->strcomp = strcmp;
- diff->strncomp = strncmp;
+ diff->strcomp = git__strcmp;
+ diff->strncomp = git__strncmp;
diff->pfxcomp = git__prefixcmp;
diff->entrycomp = git_index_entry__cmp;
} else {
diff->opts.flags |= GIT_DIFF_DELTAS_ARE_ICASE;
- diff->strcomp = strcasecmp;
- diff->strncomp = strncasecmp;
+ diff->strcomp = git__strcasecmp;
+ diff->strncomp = git__strncasecmp;
diff->pfxcomp = git__prefixcmp_icase;
diff->entrycomp = git_index_entry__cmp_icase;
}