cat-file: use a single strbuf for all output
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 9e02fc494ea1a0b4c1c9f3ad4e55ceb500d2086e..6d14702df21fcc34b7395e16941064f4ee795342 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1633,12 +1633,19 @@ enum for_each_object_flags {
 
        /* Only iterate over packs obtained from the promisor remote. */
        FOR_EACH_OBJECT_PROMISOR_ONLY = (1<<1),
+
+       /*
+        * Visit objects within a pack in packfile order rather than .idx order
+        */
+       FOR_EACH_OBJECT_PACK_ORDER = (1<<2),
 };
 
 /*
- * Iterate over loose objects in both the local
- * repository and any alternates repositories (unless the
- * LOCAL_ONLY flag is set).
+ * Iterate over all accessible loose objects without respect to
+ * reachability. By default, this includes both local and alternate objects.
+ * The order in which objects are visited is unspecified.
+ *
+ * Any flags specific to packs are ignored.
  */
 int for_each_loose_object(each_loose_object_fn, void *,
                          enum for_each_object_flags flags);