Skip to content

Commit ee8d52f

Browse files
committed
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
2 parents 3d8bc74 + 701825d commit ee8d52f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
280280

281281
argc = setup_revisions(argc, argv, &rev, NULL);
282282
rev.diffopt.output_format = DIFF_FORMAT_PATCH;
283+
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
283284
out = open(file, O_CREAT | O_WRONLY, 0644);
284285
if (out < 0)
285286
die (_("Could not open '%s' for writing."), file);

0 commit comments

Comments
 (0)