All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Adam Roben <aroben@apple.com>
Cc: git@vger.kernel.org, Johannes.Schindelin@gmx.de
Subject: Re: [PATCH] Print an error when falling back to vi on a dumb terminal
Date: Thu, 19 Jul 2007 17:15:24 -0700	[thread overview]
Message-ID: <7vfy3k2an7.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <11848794193942-git-send-email-aroben@apple.com> (Adam Roben's message of "Thu, 19 Jul 2007 14:10:19 -0700")

Adam Roben <aroben@apple.com> writes:

> Here you go. I'm not terribly happy with the error message, though. I tried to
> be as clear as possible and to keep some of the nice information that was in
> the git-commit error message. Please improve upon it if you can.
>
>  git-am.sh                  |    4 ++--
>  git-commit.sh              |   11 +----------
>  git-rebase--interactive.sh |    2 +-
>  git-sh-setup.sh            |   15 +++++++++++++--
>  git-tag.sh                 |    2 +-
>  5 files changed, 18 insertions(+), 16 deletions(-)
>
> diff --git a/git-am.sh b/git-am.sh
> index a5de0a1..dd517f4 100755
> --- a/git-am.sh
> +++ b/git-am.sh
> @@ -7,7 +7,6 @@ USAGE='[--signoff] [--dotest=<dir>] [--utf8 | --no-utf8] [--binary] [--3way]
>    or, when resuming [--skip | --resolved]'
>  . git-sh-setup
>  set_reflog_action am
> -set_editor
>  require_work_tree
>  
>  git var GIT_COMMITTER_IDENT >/dev/null || exit
> @@ -365,7 +364,8 @@ do
>  		[yY]*) action=yes ;;
>  		[aA]*) action=yes interactive= ;;
>  		[nN]*) action=skip ;;
> -		[eE]*) "$GIT_EDITOR" "$dotest/final-commit"
> +		[eE]*) set_editor
> +		       "$GIT_EDITOR" "$dotest/final-commit"
>  		       action=again ;;
>  		[vV]*) action=again
>  		       LESS=-S ${PAGER:-less} "$dotest/patch" ;;

Sounds sane.

Could you please re-diff to make this into a single patch
without intermediate "Oh, doing it this way is cleaner", and
also with Dscho's Ack?  I do not think we would need to have 3
commits for this topic --- it is not like wide userbase tested
each iteration.

  parent reply	other threads:[~2007-07-20  0:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-19  5:39 [PATCH] Add commit.editor configuration variable Adam Roben
2007-07-19  6:08 ` Junio C Hamano
2007-07-19  6:17   ` Adam Roben
2007-07-19  6:23     ` Shawn O. Pearce
2007-07-19  6:53       ` Junio C Hamano
2007-07-19  9:54         ` Johannes Schindelin
2007-07-19 18:24           ` [PATCH] Add git-sh-setup::set_editor() Adam Roben
2007-07-19 18:46             ` Johannes Schindelin
2007-07-19 19:26               ` David Kastrup
2007-07-19 21:10               ` [PATCH] Print an error when falling back to vi on a dumb terminal Adam Roben
2007-07-19 21:19                 ` Johannes Schindelin
2007-07-20  0:15                 ` Junio C Hamano [this message]
2007-07-20  0:28                   ` [PATCH] Add core.editor configuration variable Adam Roben
2007-07-20  5:09                     ` [PATCH] Add GIT_EDITOR environment variable and " Adam Roben

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vfy3k2an7.fsf@assigned-by-dhcp.cox.net \
    --to=gitster@pobox.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=aroben@apple.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.