diff options
Diffstat (limited to 'add-patch.c')
| -rw-r--r-- | add-patch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/add-patch.c b/add-patch.c index a86a92e164..e6c34b9c38 100644 --- a/add-patch.c +++ b/add-patch.c @@ -1,5 +1,6 @@ #include "cache.h" #include "add-interactive.h" +#include "alloc.h" #include "strbuf.h" #include "run-command.h" #include "strvec.h" @@ -483,7 +484,8 @@ static int parse_diff(struct add_p_state *s, const struct pathspec *ps) if (!eol) eol = pend; - if (starts_with(p, "diff ")) { + if (starts_with(p, "diff ") || + starts_with(p, "* Unmerged path ")) { complete_file(marker, hunk); ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1, file_diff_alloc); |
