]> git.ipfire.org Git - thirdparty/git.git/blobdiff - list-objects-filter.h
list-objects: support for skipping tree traversal
[thirdparty/git.git] / list-objects-filter.h
index a963d0274ceb1ea80c9b4ba2003dfb4dd0226116..9c19875a4100d36d48237aa3aa52943647bbe5c6 100644 (file)
  *              In general, objects should only be shown once, but
  *              this result DOES NOT imply that we mark it SEEN.
  *
+ * _SKIP_TREE : Used in LOFS_BEGIN_TREE situation - indicates that
+ *              the tree's children should not be iterated over. This
+ *              is used as an optimization when all children will
+ *              definitely be ignored.
+ *
  * Most of the time, you want the combination (_MARK_SEEN | _DO_SHOW)
  * but they can be used independently, such as when sparse-checkout
  * pattern matching is being applied.
@@ -41,6 +46,7 @@ enum list_objects_filter_result {
        LOFR_ZERO      = 0,
        LOFR_MARK_SEEN = 1<<0,
        LOFR_DO_SHOW   = 1<<1,
+       LOFR_SKIP_TREE = 1<<2,
 };
 
 enum list_objects_filter_situation {