[PATCH] Completion: Hint whether amend is the right thing to do.
From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:44:39
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:44:39
Subsystem:
the rest · Maintainer:
Linus Torvalds
When you get a conflict during interactive rebase the next thing to do is not to amend, but to continue the rebase. With this change you get a reminder in the prompt. Signed-off-by: Robin Rosenberg <redacted> --- contrib/completion/git-completion.bash | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) I got a couple of broken rebases. Hence this fix. -- robin
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1698463..a606328 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash@@ -82,7 +82,12 @@ __git_ps1 () b="$(git symbolic-ref HEAD 2>/dev/null)" elif [ -f "$g/.dotest-merge/interactive" ] then - r="|REBASE-i" + if [ -f "$g/.dotest-merge/amend" ] + then + r="|REBASE-i-amend" + else + r="|REBASE-i-continue" + fi b="$(cat "$g/.dotest-merge/head-name")" elif [ -d "$g/.dotest-merge" ] then
--
1.5.5.1.178.g1f811