X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-describe.c;h=71be2a9364748668996696f6c74057dba43315b5;hb=c512b035556eff4d8f869afeda5fd78bc7a4966d;hp=d4efb10ddfddedb1671fa91130e5fe78400ad154;hpb=a62e733be6abf88f76bdcb6c5eeef34f43860c8c;p=git.git diff --git a/builtin-describe.c b/builtin-describe.c index d4efb10dd..71be2a936 100644 --- a/builtin-describe.c +++ b/builtin-describe.c @@ -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. */