X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=describe.c;h=f4029ee74e80305e9ec9e5793d2e12c07096f45a;hb=b81ba571242a1b64b4fbda215ea38dd062f2b05f;hp=ab192f83ae27c5e0bf3f2a5f61684d0dc66deb32;hpb=3453f862e1c74e400da67def9b810300ef90c3ac;p=git.git diff --git a/describe.c b/describe.c index ab192f83a..f4029ee74 100644 --- a/describe.c +++ b/describe.c @@ -53,7 +53,7 @@ static void add_to_known_names(const char *path, names = ++idx; } -static int get_name(const char *path, const unsigned char *sha1) +static int get_name(const char *path, const unsigned char *sha1, int flag, void *cb_data) { struct commit *commit = lookup_commit_reference_gently(sha1, 1); struct object *object; @@ -113,7 +113,7 @@ static void describe(const char *arg, int last_one) if (!initialized) { initialized = 1; - for_each_ref(get_name); + for_each_ref(get_name, NULL); qsort(name_array, names, sizeof(*name_array), compare_names); }