summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-05-23 00:28:12 +1000
committerAlan Rogers <alan@github.com>2014-05-23 00:28:12 +1000
commitc4366096d440570c84754c8751583ddf4748b6b2 (patch)
tree65e331118c0006ebbba775a32767b7661e772564
parent7c4bbbf46da0287fe77f517dbea54a5a9aefc599 (diff)
downloadlibgit2-c4366096d440570c84754c8751583ddf4748b6b2.tar.gz
Don't need to duplicate this code.
-rw-r--r--src/diff.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/diff.c b/src/diff.c
index db22e5ee3..00e6fef8f 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -200,12 +200,8 @@ static git_diff_delta *diff_delta__last_for_item(
if (git_oid__cmp(&delta->new_file.id, &item->id) == 0)
return delta;
break;
- case GIT_DELTA_UNTRACKED:
- if (diff->strcomp(delta->new_file.path, item->path) == 0 &&
- git_oid__cmp(&delta->new_file.id, &item->id) == 0)
- return delta;
- break;
case GIT_DELTA_UNREADABLE:
+ case GIT_DELTA_UNTRACKED:
if (diff->strcomp(delta->new_file.path, item->path) == 0 &&
git_oid__cmp(&delta->new_file.id, &item->id) == 0)
return delta;