From 9aadc4efea1593be96df9ff5dbcf9f2db911245a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 23 Oct 2010 07:56:21 -0700 Subject: [PATCH] add -e: ignore dirty submodules We cannot add untracked/modified files in submodules anyway. Signed-off-by: Johannes Schindelin --- builtin/add.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/add.c b/builtin/add.c index c59b0c98fe..68fd050e94 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -279,6 +279,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix) argc = setup_revisions(argc, argv, &rev, NULL); rev.diffopt.output_format = DIFF_FORMAT_PATCH; + DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES); out = open(file, O_CREAT | O_WRONLY, 0644); if (out < 0) die (_("Could not open '%s' for writing."), file); -- 2.11.4.GIT