ref-filter: add function to print single ref_array_item
[gitweb.git] / ref-filter.h
index 14d435e2ccf0204312d1f72555f1c2c36fabd215..3cf3d3f590484e246c0b0bd52a44f72071ad377b 100644 (file)
@@ -107,4 +107,11 @@ struct ref_sorting *ref_default_sorting(void);
 /*  Function to parse --merged and --no-merged options */
 int parse_opt_merge_filter(const struct option *opt, const char *arg, int unset);
 
+/*
+ * 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,
+               const char *format);
+
 #endif /*  REF_FILTER_H  */