mirror of
https://github.com/git/git.git
synced 2026-03-13 02:13:24 +01:00
add -e: ignore dirty submodules
We cannot add untracked/modified files in submodules anyway. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -278,6 +278,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);
|
||||
|
||||
Reference in New Issue
Block a user