sequencer: fast-forward `merge` commands, if possible
[gitweb.git] / ref-filter.h
index 0d98342b343196387c0f4e2dcd5978a9361d8edb..76cf87cb6c64928437c2cc8c31784eba58d09bc7 100644 (file)
@@ -132,7 +132,15 @@ void setup_ref_filter_porcelain_msg(void);
  * Print a single ref, outside of any ref-filter. Note that the
  * name must be a fully qualified refname.
  */
-void pretty_print_ref(const char *name, const unsigned char *sha1,
+void pretty_print_ref(const char *name, const struct object_id *oid,
                      const struct ref_format *format);
 
+/*
+ * Push a single ref onto the array; this can be used to construct your own
+ * ref_array without using filter_refs().
+ */
+struct ref_array_item *ref_array_push(struct ref_array *array,
+                                     const char *refname,
+                                     const struct object_id *oid);
+
 #endif /*  REF_FILTER_H  */