Merge branch 'js/add-e-submodule-fix' into maint
* js/add-e-submodule-fix: add -e: do not show difference in a submodule that is merely dirty
This commit is contained in:
@ -280,6 +280,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
|
|||||||
|
|
||||||
argc = setup_revisions(argc, argv, &rev, NULL);
|
argc = setup_revisions(argc, argv, &rev, NULL);
|
||||||
rev.diffopt.output_format = DIFF_FORMAT_PATCH;
|
rev.diffopt.output_format = DIFF_FORMAT_PATCH;
|
||||||
|
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
|
||||||
out = open(file, O_CREAT | O_WRONLY, 0644);
|
out = open(file, O_CREAT | O_WRONLY, 0644);
|
||||||
if (out < 0)
|
if (out < 0)
|
||||||
die (_("Could not open '%s' for writing."), file);
|
die (_("Could not open '%s' for writing."), file);
|
||||||
|
Reference in New Issue
Block a user