ref-filter: fix outdated comment on in_commit_list
[gitweb.git] / walker.c
index 5d4d3733f75648dfa8d6955a5ec1ed9f3dfeb77b..f51b8558723354aad4dbfeb7764baa97893f6c1c 100644 (file)
--- a/walker.c
+++ b/walker.c
@@ -22,7 +22,7 @@ void walker_say(struct walker *walker, const char *fmt, ...)
 static void report_missing(const struct object *obj)
 {
        fprintf(stderr, "Cannot obtain needed %s %s\n",
-               obj->type ? typename(obj->type): "object",
+               obj->type ? type_name(obj->type): "object",
                oid_to_hex(&obj->oid));
        if (!is_null_oid(&current_commit_oid))
                fprintf(stderr, "while processing commit %s.\n",
@@ -87,7 +87,7 @@ static int process_commit(struct walker *walker, struct commit *commit)
        walker_say(walker, "walk %s\n", oid_to_hex(&commit->object.oid));
 
        if (walker->get_tree) {
-               if (process(walker, &commit->tree->object))
+               if (process(walker, &get_commit_tree(commit)->object))
                        return -1;
                if (!walker->get_all)
                        walker->get_tree = 0;
@@ -134,7 +134,7 @@ static int process_object(struct walker *walker, struct object *obj)
        }
        return error("Unable to determine requirements "
                     "of type %s for %s",
-                    typename(obj->type), oid_to_hex(&obj->oid));
+                    type_name(obj->type), oid_to_hex(&obj->oid));
 }
 
 static int process(struct walker *walker, struct object *obj)