commit: use generations in paint_down_to_common()
[gitweb.git] / reachable.c
index 492e87b9fa00c392ef799567dc6ef60e2dfb18a5..191ebe3e6a99d26913a510967a9545f53db58bc8 100644 (file)
@@ -9,6 +9,7 @@
 #include "cache-tree.h"
 #include "progress.h"
 #include "list-objects.h"
+#include "packfile.h"
 #include "worktree.h"
 
 struct connectivity_progress {
@@ -93,7 +94,7 @@ static void add_recent_object(const struct object_id *oid,
                break;
        default:
                die("unknown object type for %s: %s",
-                   oid_to_hex(oid), typename(type));
+                   oid_to_hex(oid), type_name(type));
        }
 
        if (!obj)