cmd_push: pass "flags" pointer to config callback
[gitweb.git] / refs.h
diff --git a/refs.h b/refs.h
index fc88ba6b3062d29d53a93188d1134d8a513792f7..afa3c4decd5562c85978e49a9e1c2a34c128b055 100644 (file)
--- a/refs.h
+++ b/refs.h
@@ -154,7 +154,15 @@ extern void rollback_packed_refs(void);
  */
 int pack_refs(unsigned int flags);
 
-extern int repack_without_refs(const char **refnames, int n,
+/*
+ * Rewrite the packed-refs file, omitting any refs listed in
+ * 'refnames'. On error, packed-refs will be unchanged, the return
+ * value is nonzero, and a message about the error is written to the
+ * 'err' strbuf.
+ *
+ * The refs in 'refnames' needn't be sorted. `err` must not be NULL.
+ */
+extern int repack_without_refs(struct string_list *refnames,
                               struct strbuf *err);
 
 extern int ref_exists(const char *);