*/
enum list_objects_filter_choice choice;
+ /*
+ * Choice is LOFC_DISABLED because "--no-filter" was requested.
+ */
+ unsigned int no_filter : 1;
+
/*
* Parsed values (fields) from within the filter-spec. These are
* choice-specific; not all values will be defined for any given
void list_objects_filter_release(
struct list_objects_filter_options *filter_options);
+static inline void list_objects_filter_set_no_filter(
+ struct list_objects_filter_options *filter_options)
+{
+ list_objects_filter_release(filter_options);
+ filter_options->no_filter = 1;
+}
+
void partial_clone_register(
const char *remote,
const struct list_objects_filter_options *filter_options);