@matheusbsbs / matheus-bagliano / commits / 767c98a592
Fork 0

git-add -u: do not barf on type changes

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Sep 14, 2007 at 00:45 UTC 767c98a5929b02152c8904a09f1eabbf8d386395
1 file changed +1
builtin-add.c
+1
@@ -98,6 +98,7 @@ static void update_callback(struct diff_queue_struct *q,
98 die("unexpacted diff status %c", p->status);
99 case DIFF_STATUS_UNMERGED:
100 case DIFF_STATUS_MODIFIED:
101 + case DIFF_STATUS_TYPE_CHANGED:
102 add_file_to_cache(path, verbose);
103 break;
104 case DIFF_STATUS_DELETED: