* [PATCH] rebase -i: fix reword when using a terminal editor
@ 2009-10-16 6:32 Stephen Boyd
2009-10-16 8:05 ` Björn Gustavsson
2009-10-19 8:05 ` Junio C Hamano
0 siblings, 2 replies; 3+ messages in thread
From: Stephen Boyd @ 2009-10-16 6:32 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, Björn Gustavsson
We don't want to use output() on git-commit --amend when rewording the
commit message. This leads to confusion as the editor is run in a
subshell with it's output saved away, leaving the user with a seemingly
frozen terminal.
Fix by removing the output part.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
On top of next.
I think this is right, although I'm not really experienced in the rebase -i
code
git-rebase--interactive.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index a43ee22..a1879e3 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -346,7 +346,7 @@ do_next () {
mark_action_done
pick_one $sha1 ||
die_with_patch $sha1 "Could not apply $sha1... $rest"
- output git commit --amend
+ git commit --amend
;;
edit|e)
comment_for_reflog edit
--
1.6.5.103.g6b436.dirty
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] rebase -i: fix reword when using a terminal editor
2009-10-16 6:32 [PATCH] rebase -i: fix reword when using a terminal editor Stephen Boyd
@ 2009-10-16 8:05 ` Björn Gustavsson
2009-10-19 8:05 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Björn Gustavsson @ 2009-10-16 8:05 UTC (permalink / raw)
To: Stephen Boyd; +Cc: git, Junio C Hamano
2009/10/16 Stephen Boyd <bebarino@gmail.com>:
> We don't want to use output() on git-commit --amend when rewording the
> commit message. This leads to confusion as the editor is run in a
> subshell with it's output saved away, leaving the user with a seemingly
> frozen terminal.
>
> Fix by removing the output part.
>
> Signed-off-by: Stephen Boyd <bebarino@gmail.com>
> ---
>
> On top of next.
>
> I think this is right, although I'm not really experienced in the rebase -i
> code
Thanks!
Yes, it seems right to me too after a more thorough reading of the
existing rebase -i code. It seems that 'output' is only used for
non-interactive commands.
I never noticed the problem because I use 'emacsclient' as my
commit editor. I didn't think of testing with an editor that run in
the terminal window.
/Björn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] rebase -i: fix reword when using a terminal editor
2009-10-16 6:32 [PATCH] rebase -i: fix reword when using a terminal editor Stephen Boyd
2009-10-16 8:05 ` Björn Gustavsson
@ 2009-10-19 8:05 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2009-10-19 8:05 UTC (permalink / raw)
To: Stephen Boyd; +Cc: git, Björn Gustavsson
Thanks, applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-19 8:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 6:32 [PATCH] rebase -i: fix reword when using a terminal editor Stephen Boyd
2009-10-16 8:05 ` Björn Gustavsson
2009-10-19 8:05 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).