Commit c4366096d440570c84754c8751583ddf4748b6b2

Alan Rogers 2014-05-23T00:28:12

Don't need to duplicate this code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/diff.c b/src/diff.c
index db22e5e..00e6fef 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;