From: Luke Dashjr Date: Thu, 13 Aug 2009 03:20:21 GMT Subject: [PATCH 2/5] fix "git add --ignore-errors" to ignore pathspec errors Message-ID: <1250133624-2272-2-git-send-email-luke-jr+git@utopios.org> In-Reply-To: <1250133624-2272-1-git-send-email-luke-jr+git@utopios.org> Unmatched files are errors, and should be ignored with the rest of them. Signed-off-by: Luke Dashjr --- builtin-add.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/builtin-add.c b/builtin-add.c index 0597fb9..e3132c8 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -280,6 +280,8 @@ int cmd_add(int argc, const char **argv, const char *prefix) add_interactive = 1; if (add_interactive) exit(interactive_add(argc - 1, argv + 1, prefix)); + if (ignore_add_errors) + ignore_unmatch = 1; if (edit_interactive) return(edit_patch(argc, argv, prefix)); -- 1.6.3.3