]> git.ipfire.org Git - thirdparty/git.git/blobdiff - strbuf.h
strbuf: convert strbuf_add_unique_abbrev to use struct object_id
[thirdparty/git.git] / strbuf.h
index 14c8c10d66b9aaa2d8f0c109cf0dd668701cb2eb..cd7ad898eb293199b3f4c0fe1640aefec625fb4a 100644 (file)
--- a/strbuf.h
+++ b/strbuf.h
@@ -70,6 +70,12 @@ struct strbuf {
 extern char strbuf_slopbuf[];
 #define STRBUF_INIT  { .alloc = 0, .len = 0, .buf = strbuf_slopbuf }
 
+/*
+ * Predeclare this here, since cache.h includes this file before it defines the
+ * struct.
+ */
+struct object_id;
+
 /**
  * Life Cycle Functions
  * --------------------
@@ -539,7 +545,7 @@ extern void strbuf_list_free(struct strbuf **);
  * the strbuf `sb`.
  */
 extern void strbuf_add_unique_abbrev(struct strbuf *sb,
-                                    const unsigned char *sha1,
+                                    const struct object_id *oid,
                                     int abbrev_len);
 
 /**