git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rebase -i: fix overzealous output redirection
@ 2007-07-26  6:35 Johannes Schindelin
  2007-07-26  6:38 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Schindelin @ 2007-07-26  6:35 UTC (permalink / raw)
  To: git, gitster


When squashing, you no longer saw what the editor had to say to you
after commit 'Shut "git rebase -i" up when no --verbose was given'
(if you used a console based editor, at least).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
	This bit me real hard when cleaning up the work-tree patch
	series.

 git-rebase--interactive.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 93289c0..9a88335 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -250,10 +250,12 @@ do_next () {
 		case "$(peek_next_command)" in
 		squash)
 			EDIT_COMMIT=
+			USE_OUTPUT=output
 			cp "$MSG" "$SQUASH_MSG"
 		;;
 		*)
 			EDIT_COMMIT=-e
+			USE_OUTPUT=
 			test -f "$SQUASH_MSG" && rm "$SQUASH_MSG"
 		esac
 
@@ -267,7 +269,7 @@ do_next () {
 			# This is like --amend, but with a different message
 			eval "$author_script"
 			export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE
-			output git commit -F "$MSG" $EDIT_COMMIT
+			$USE_OUTPUT git commit -F "$MSG" $EDIT_COMMIT
 			;;
 		t)
 			cp "$MSG" "$GIT_DIR"/MERGE_MSG
-- 
1.5.3.rc2.42.gda8d-dirty

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] rebase -i: fix overzealous output redirection
  2007-07-26  6:35 [PATCH] rebase -i: fix overzealous output redirection Johannes Schindelin
@ 2007-07-26  6:38 ` Junio C Hamano
  2007-07-26  6:48   ` Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-07-26  6:38 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> When squashing, you no longer saw what the editor had to say to you
> after commit 'Shut "git rebase -i" up when no --verbose was given'
> (if you used a console based editor, at least).
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> 	This bit me real hard when cleaning up the work-tree patch
> 	series.

Heh, good catch.

At least you are eating your own dog food, which is a very
assuring thing before the feature release.  Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] rebase -i: fix overzealous output redirection
  2007-07-26  6:38 ` Junio C Hamano
@ 2007-07-26  6:48   ` Johannes Schindelin
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2007-07-26  6:48 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Hi,

On Wed, 25 Jul 2007, Junio C Hamano wrote:

> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > When squashing, you no longer saw what the editor had to say to you
> > after commit 'Shut "git rebase -i" up when no --verbose was given'
> > (if you used a console based editor, at least).
> >
> > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> > ---
> > 	This bit me real hard when cleaning up the work-tree patch
> > 	series.
> 
> Heh, good catch.
> 
> At least you are eating your own dog food, which is a very
> assuring thing before the feature release.  Thanks.

I try my very best!  Though I have to go to bed without having had a 
chance to work on the send-pack bug :-(

Good night, and good luck,
Dscho

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-26  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26  6:35 [PATCH] rebase -i: fix overzealous output redirection Johannes Schindelin
2007-07-26  6:38 ` Junio C Hamano
2007-07-26  6:48   ` Johannes Schindelin

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).