Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sequencer (rebase -i): suggest --edit-todo upon unknown command
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Mon, 2 Jan 2017 15:35:42 +0000
(16:35 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Jan 2017 22:06:01 +0000
(14:06 -0800)
This is the same behavior as known from `git rebase -i`.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
62fdb65
)
diff --git
a/sequencer.c
b/sequencer.c
index 27dc91cc95601b7a6ddaf498ce4182cc7371778b..5784fb487b30bb70ad38b61cda41c1a3b0bab9a5 100644
(file)
--- a/
sequencer.c
+++ b/
sequencer.c
@@
-1314,8
+1314,12
@@
static int read_populate_todo(struct todo_list *todo_list,
close(fd);
res = parse_insn_buffer(todo_list->buf.buf, todo_list);
close(fd);
res = parse_insn_buffer(todo_list->buf.buf, todo_list);
- if (res)
+ if (res) {
+ if (is_rebase_i(opts))
+ return error(_("please fix this using "
+ "'git rebase --edit-todo'."));
return error(_("unusable instruction sheet: '%s'"), todo_file);
return error(_("unusable instruction sheet: '%s'"), todo_file);
+ }
if (!todo_list->nr &&
(!is_rebase_i(opts) || !file_exists(rebase_path_done())))
if (!todo_list->nr &&
(!is_rebase_i(opts) || !file_exists(rebase_path_done())))