diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-01 11:45:00 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-02 15:51:55 -0800 |
commit | e1bcc19110eb7d540dee92af489440dd2953b5d5 (patch) | |
tree | eb5a3a1db6a7dbdd135faa9845a83c222d2790a1 /tests-clar/diff/diff_helpers.c | |
parent | c19bc93cef62cf4a638ab42ba9562885b07a68ce (diff) | |
download | libgit2-e1bcc19110eb7d540dee92af489440dd2953b5d5.tar.gz |
Revert GIT_STATUS constants to avoid issues
This reverts the changes to the GIT_STATUS constants and adds a
new enumeration to describe the type of change in a git_diff_delta.
I don't love this solution, but it should prevent strange errors
from occurring for now. Eventually, I would like to unify the
various status constants, but it needs a larger plan and I just
wanted to eliminate this breakage quickly.
Diffstat (limited to 'tests-clar/diff/diff_helpers.c')
-rw-r--r-- | tests-clar/diff/diff_helpers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c index 67a4f1c5..d8eca7d9 100644 --- a/tests-clar/diff/diff_helpers.c +++ b/tests-clar/diff/diff_helpers.c @@ -30,11 +30,11 @@ int diff_file_fn( (void)progress; e->files++; switch (delta->status) { - case GIT_STATUS_ADDED: e->file_adds++; break; - case GIT_STATUS_DELETED: e->file_dels++; break; - case GIT_STATUS_MODIFIED: e->file_mods++; break; - case GIT_STATUS_IGNORED: e->file_ignored++; break; - case GIT_STATUS_UNTRACKED: e->file_untracked++; break; + case GIT_DELTA_ADDED: e->file_adds++; break; + case GIT_DELTA_DELETED: e->file_dels++; break; + case GIT_DELTA_MODIFIED: e->file_mods++; break; + case GIT_DELTA_IGNORED: e->file_ignored++; break; + case GIT_DELTA_UNTRACKED: e->file_untracked++; break; default: break; } return 0; |