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

Re: [PATCH] describe: when failing, tell the user about options that work

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 23, 2009, 00:25 UTC
Message-ID
<7vljj3dkid.fsf@alter.siamese.dyndns.org>
In-Reply-To
<f1e86b9095d63c6541d0a8df6a1cf8eadfe247bb.1256226187.git.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 8 quoted lines
> @@ -259,7 +260,14 @@ static void describe(const char *arg, int last_one)
>  			printf("%s\n", find_unique_abbrev(sha1, abbrev));
>  			return;
>  		}
> -		die("cannot describe '%s'", sha1_to_hex(sha1));
> +		if (unannotated_cnt)
> +			die("cannot describe '%s'"
> +			    " with only\nannotated tags. Try --tags.",
Did you mean UNannotated tags here?
Show 8 quoted lines
> +			    sha1_to_hex(sha1));
> +		else
> +			die("cannot describe '%s'"
> +			    " with tags\nTry --always, or create some tags.",
> +			    sha1_to_hex(sha1));
>  	}
>  
>  	qsort(all_matches, match_cnt, sizeof(all_matches[0]), compare_pt);
Previous: Junio C HamanoNext: Thomas Rast
Message 10 of 13 in “git describe is failing”
  1. Eugene SajineOct 22, 2009
  2. Mikael MagnussonOct 22, 2009
  3. Thomas RastOct 22, 2009
  4. Eugene SajineOct 22, 2009
  5. describe: when failing, tell the user about options that workThomas Rast, Oct 22, 2009
  6. Alex RiesenOct 22, 2009
  7. Junio C HamanoOct 22, 2009
  8. Nicolas PitreOct 23, 2009
  9. Junio C HamanoOct 23, 2009
  10. Junio C HamanoOct 23, 2009
  11. Thomas RastOct 23, 2009
  12. Junio C HamanoOct 23, 2009
  13. describe: when failing, tell the user about options that workThomas Rast, Oct 28, 2009

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.