git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Wincent Colaiuta <win@wincent.com>
Cc: Junio C Hamano <gitster@pobox.com>,
	Johannes Sixt <j.sixt@viscovery.net>,
	git@vger.kernel.org, tsuna@lrde.epita.fr, mcostalba@gmail.com
Subject: Re: [PATCH] Replace misleading message during interactive rebasing
Date: Wed, 28 Nov 2007 12:41:09 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0711281237250.27959@racer.site> (raw)
In-Reply-To: <47D3817B-AA0D-4949-99ED-C36611604D5E@wincent.com>

Hi,

On Wed, 28 Nov 2007, Wincent Colaiuta wrote:

> @@ -352,11 +352,13 @@ static int revert_or_cherry_pick(int argc, const char
> **argv)
> 		}
> 		if (close(msg_fd) || commit_lock_file(&msg_file) < 0)
> 			die ("Error wrapping up %s", defmsg);
> +		help_message = getenv("_GIT_CHERRY_PICK_HELP");
> 		fprintf(stderr, "Automatic %s failed.  "
> 			"After resolving the conflicts,\n"
> 			"mark the corrected paths with 'git add <paths>' "
> -			"and commit the result.\n", me);
> -		if (action == CHERRY_PICK) {
> +			"and %s.\n", me,
> +			help_message ? help_message : "commit the result");
> +		if (action == CHERRY_PICK && !help_message) {
> 			fprintf(stderr, "When commiting, use the option "
> 				"'-c %s' to retain authorship and message.\n",
> 				find_unique_abbrev(commit->object.sha1,

What about Junio's remark that _GIT_CHERRY_PICK_HELP should rather replace 
the _complete_ message?

You could still provide the "me" and unique_abbrev parameters, so that the 
first %s in _GIT_CHERRY_PICK_HELP would be replaced by the operation, and 
the second by the sha1.  Hmm?

Ciao,
Dscho

  reply	other threads:[~2007-11-28 12:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26 21:18 [PATCH] Replace misleading message during interactive rebasing Wincent Colaiuta
2007-11-27  8:31 ` Johannes Sixt
2007-11-27  8:49   ` Wincent Colaiuta
2007-11-27  9:46   ` Jeff King
2007-11-27  9:49     ` Jakub Narebski
2007-11-27  9:52       ` Jeff King
2007-11-27 10:15       ` Jeff King
2007-11-28  4:37   ` Junio C Hamano
2007-11-28  8:26     ` Wincent Colaiuta
2007-11-28 12:41       ` Johannes Schindelin [this message]
2007-11-28 12:53         ` Johannes Sixt

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=Pine.LNX.4.64.0711281237250.27959@racer.site \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=j.sixt@viscovery.net \
    --cc=mcostalba@gmail.com \
    --cc=tsuna@lrde.epita.fr \
    --cc=win@wincent.com \
    /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 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).