summaryrefslogtreecommitdiff
path: root/src/submodule.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-12-17 11:00:53 -0800
committerRussell Belfer <rb@github.com>2012-12-17 11:00:53 -0800
commit56c72b759c3adb92c0fdab18fccfb25fb561cd4f (patch)
tree9721502f41527e61265ae56940d30fddd5db9672 /src/submodule.c
parentf79535092d86b531793640834bb010fa67dd4c3c (diff)
downloadlibgit2-56c72b759c3adb92c0fdab18fccfb25fb561cd4f.tar.gz
Fix diff constructor name order confusion
The diff constructor functions had some confusing names, where the "old" side of the diff was coming after the "new" side. This reverses the order in the function name to make it less confusing. Specifically... * git_diff_index_to_tree becomes git_diff_tree_to_index * git_diff_workdir_to_index becomes git_diff_index_to_workdir * git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/submodule.c b/src/submodule.c
index 3d9950d58..94b4f724e 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -1454,7 +1454,7 @@ static int submodule_wd_status(unsigned int *status, git_submodule *sm)
if (sm->ignore == GIT_SUBMODULE_IGNORE_NONE)
opt.flags |= GIT_DIFF_INCLUDE_UNTRACKED;
- error = git_diff_index_to_tree(&diff, sm_repo, sm_head, NULL, &opt);
+ error = git_diff_tree_to_index(&diff, sm_repo, sm_head, NULL, &opt);
if (!error) {
if (git_diff_num_deltas(diff) > 0)
@@ -1471,7 +1471,7 @@ static int submodule_wd_status(unsigned int *status, git_submodule *sm)
/* perform index-to-workdir diff on submodule */
- error = git_diff_workdir_to_index(&diff, sm_repo, NULL, &opt);
+ error = git_diff_index_to_workdir(&diff, sm_repo, NULL, &opt);
if (!error) {
size_t untracked =