aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-06-05 12:00:09 -0700
committerJunio C Hamano <gitster@pobox.com>2015-06-05 12:00:09 -0700
commit8d5ef5a0d1da18a2eb55c976720a8e96642c1b0b (patch)
treeb1f242433912f04efc62a741cf1ae1657d8bad05 /builtin
parenta3821a1ae5580ac9788d866c292376070d3e5133 (diff)
parentcb64800d83ace6fecb8701151cfdb6ed0712702c (diff)
downloadgit-8d5ef5a0d1da18a2eb55c976720a8e96642c1b0b.tar.gz
git-8d5ef5a0d1da18a2eb55c976720a8e96642c1b0b.tar.xz
Merge branch 'jk/add-e-kill-editor' into maint
"git add -e" did not allow the user to abort the operation by killing the editor. * jk/add-e-kill-editor: add: check return value of launch_editor
Diffstat (limited to 'builtin')
-rw-r--r--builtin/add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c
index 3390933d6..4bd98b799 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -208,7 +208,8 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
if (run_diff_files(&rev, 0))
die(_("Could not write patch"));
- launch_editor(file, NULL, NULL);
+ if (launch_editor(file, NULL, NULL))
+ die(_("editing patch failed"));
if (stat(file, &st))
die_errno(_("Could not stat '%s'"), file);