Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:36

Possibly related (same subject, not in this thread)

Thomas Rast [off-list ref] writes:
quoted hunk
@@ -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?
+			    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);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help