Code

strbuf_add_wrapped_text(): skip over colour codes
[git.git] / builtin-describe.c
index d4efb10ddfddedb1671fa91130e5fe78400ad154..71be2a9364748668996696f6c74057dba43315b5 100644 (file)
@@ -200,7 +200,7 @@ static void describe(const char *arg, int last_one)
                die("%s is not a valid '%s' object", arg, commit_type);
 
        n = cmit->util;
-       if (n) {
+       if (n && (tags || all || n->prio == 2)) {
                /*
                 * Exact match to an existing ref.
                 */