vscode: let cSpell work on commit messages, too
[gitweb.git] / ref-filter.h
index e13f8e6f8721acf95ea39c8cbc80f884d4835934..85c8ebc3b904e9b44bed8b164b9cdf62839d6dae 100644 (file)
@@ -133,7 +133,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  */