git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fast-export: fix argument name in error messages

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 12, 2013, 16:50 UTC
Message-ID
<7vy5cnelrw.fsf@alter.siamese.dyndns.org>
In-Reply-To
<43FA6C2A-A2C3-474F-889A-8059CE24175A@astro.princeton.edu>
Paul Price <price@astro.princeton.edu> writes:
Show 7 quoted lines
> The --signed-tags argument is plural, while error messages referred
> to --signed-tag (singular).  Tweak error messages to correspond to the
> argument.
>
> Signed-off-by: Paul Price <price@astro.princeton.edu>
> ---
> First submission; please report any formatting or style errors privately.

The patch is trivially whitespace-damaged but was easy enough to correct locally here.

Applied; thanks.
Show 26 quoted lines
>
> builtin/fast-export.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/builtin/fast-export.c b/builtin/fast-export.c
> index 77dffd1..ad9d0c4 100644
> --- a/builtin/fast-export.c
> +++ b/builtin/fast-export.c
> @@ -43,7 +43,7 @@ static int parse_opt_signed_tag_mode(const struct option *opt,
> 	else if (!strcmp(arg, "strip"))
> 		signed_tag_mode = STRIP;
> 	else
> -		return error("Unknown signed-tag mode: %s", arg);
> +		return error("Unknown signed-tags mode: %s", arg);
> 	return 0;
> }
>
> @@ -416,7 +416,7 @@ static void handle_tag(const char *name, struct tag *tag)
> 			switch(signed_tag_mode) {
> 			case ABORT:
> 				die ("Encountered signed tag %s; use "
> -				     "--signed-tag=<mode> to handle it.",
> +				     "--signed-tags=<mode> to handle it.",
> 				     sha1_to_hex(tag->object.sha1));
> 			case WARN:
> 				warning ("Exporting signed tag %s",
Previous: Paul Price
Message 2 of 2 in “fast-export: fix argument name in error messages”
  1. fast-export: fix argument name in error messagesPaul Price, Apr 12, 2013
  2. Junio C HamanoApr 12, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.