summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-02-10 14:08:27 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-02-10 14:08:27 -0800
commitee8d52f83985ba897dab2829823fbcfe40083cf6 (patch)
treee1fa156f8f4a80eca16443857d17bebacaaaab92 /builtin
parentMerge branch 'jc/parse-date-raw' (diff)
parentadd -e: do not show difference in a submodule that is merely dirty (diff)
downloadtgif-ee8d52f83985ba897dab2829823fbcfe40083cf6.tar.xz
Merge branch 'js/add-e-submodule-fix'
* js/add-e-submodule-fix: add -e: do not show difference in a submodule that is merely dirty
Diffstat (limited to 'builtin')
-rw-r--r--builtin/add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/add.c b/builtin/add.c
index 1c42900ff8..b79336d712 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -280,6 +280,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);