rebase interactive: Add hint how to continue after 'Unknown command' error
PATCH 1/1 rebase interactive: Add hint how to continue after 'Unknown command' error
rebase interactive asks the user to fix unknown commands but it did not tell how to continue.
This commits adds a hint how to continue.
--- git-rebase--interactive.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-rebase--interactive.sh +1 -1
@@ -310,7 +310,7 @@ do_next () { ;; *) warn "Unknown command: $command $sha1 $rest" - die_with_patch $sha1 "Please fix this in the file $TODO." + die_with_patch $sha1 "Please fix this in the file $TODO. And run 'git rebase --continue'." ;; esac test -s "$TODO" && return
Signature · 1 line
1.5.4.rc2.26.g1deb
Quoted 7 lines · Steffen Prohaska
git-rebase--interactive.sh +1
-1@@ -310,7 +310,7 @@ do_next () { ;; *) warn "Unknown command: $command $sha1 $rest" - die_with_patch $sha1 "Please fix this in the file $TODO." + die_with_patch $sha1 "Please fix this in the file $TODO. And run'git rebase --continue'."
Grammar nit: sentences can't start with "And", so that should really be:
"Please fix this in the file $TODO and run 'git rebase --continue'."
Cheers,
Wincent
Quoted 11 lines · Wincent Colaiuta
Quoted 7 lines · Steffen Prohaska
git-rebase--interactive.sh +1
-1@@ -310,7 +310,7 @@ do_next () { ;; *) warn "Unknown command: $command $sha1 $rest" - die_with_patch $sha1 "Please fix this in the file $TODO." + die_with_patch $sha1 "Please fix this in the file $TODO. And run'git rebase --continue'."
Grammar nit: sentences can't start with "And", so that should really be:
Not true:
<http://www.accu-assist.com/grammar-tips-archive/11-07-06_GrammarTip_and-but-conjunctions.htm>
Although, in this case, I would agree that it should just be one sentence with a comma. It's more of a stylistic construct, more common in fiction than technical documentation.
Dave
Quoted 13 lines · David Brown
Quoted 11 lines · Wincent Colaiuta
Quoted 7 lines · Steffen Prohaska
git-rebase--interactive.sh +1
-1@@ -310,7 +310,7 @@ do_next () { ;; *) warn "Unknown command: $command $sha1 $rest" - die_with_patch $sha1 "Please fix this in the file $TODO." + die_with_patch $sha1 "Please fix this in the file$TODO. And run 'git rebase --continue'."
Grammar nit: sentences can't start with "And", so that should really be:
Quoted 6 lines
Not true:
<http://www.accu-assist.com/grammar-tips-archive/11-07-06_GrammarTip_and-but-conjunctions.htm>Although, in this case, I would agree that it should just be one sentence with a comma. It's more of a stylistic construct, more common in fiction than technical documentation.
I've always wondered why this part can't just re-launch the editor with the $TODO file, have the instruction to "fix" in the file for the user to see (together with the original "# commented out" instructions), and do the --continue itself.