commit - 8df4cb78aacdd4c37e7bbc84eaefb6ddef5462e1
commit + 1f01014c15777ba6a21fef4a06ce3b181ab1c037
blob - e6370b544e0cdee69cc9e7d4b3159879ebba563a
blob + 1003653a384b3a80974570173cc25deeb571da5e
--- lib/patch.c
+++ lib/patch.c
goto done;
file_renamed = strcmp(oldpath, newpath);
-
- if (p->old != NULL && p->new == NULL) {
- /*
- * special case: delete a file. don't try to match
- * the lines but just schedule the removal.
- */
- err = got_worktree_schedule_delete(worktree, &oldpaths,
- 0, NULL, patch_delete, pa, repo, 0, 0);
- goto done;
- }
if (asprintf(&template, "%s/got-patch",
got_worktree_get_root_path(worktree)) == -1) {