diff options
author | Russell Belfer <rb@github.com> | 2012-12-17 11:00:53 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-12-17 11:00:53 -0800 |
commit | 56c72b759c3adb92c0fdab18fccfb25fb561cd4f (patch) | |
tree | 9721502f41527e61265ae56940d30fddd5db9672 /src/status.c | |
parent | f79535092d86b531793640834bb010fa67dd4c3c (diff) | |
download | libgit2-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/status.c')
-rw-r--r-- | src/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index 1ad835adb..115217c49 100644 --- a/src/status.c +++ b/src/status.c @@ -145,11 +145,11 @@ int git_status_foreach_ext( /* TODO: support EXCLUDE_SUBMODULES flag */ if (show != GIT_STATUS_SHOW_WORKDIR_ONLY && - (err = git_diff_index_to_tree(&idx2head, repo, head, NULL, &diffopt)) < 0) + (err = git_diff_tree_to_index(&idx2head, repo, head, NULL, &diffopt)) < 0) goto cleanup; if (show != GIT_STATUS_SHOW_INDEX_ONLY && - (err = git_diff_workdir_to_index(&wd2idx, repo, NULL, &diffopt)) < 0) + (err = git_diff_index_to_workdir(&wd2idx, repo, NULL, &diffopt)) < 0) goto cleanup; usercb.cb = cb; |