]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/describe.c
hashmap: add API to disable item counting when threaded
[thirdparty/git.git] / builtin / describe.c
index 9c13c6817bd784fb9c0e3eff781911577ef7ef8c..e77163e909d07ec168d41d8b96e05afa73490848 100644 (file)
@@ -508,7 +508,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
 
        hashmap_init(&names, commit_name_cmp, NULL, 0);
        for_each_rawref(get_name, NULL);
-       if (!names.size && !always)
+       if (!hashmap_get_size(&names) && !always)
                die(_("No names found, cannot describe anything."));
 
        if (argc == 0) {