Commit f970685c28a69b4ad4cb94b882bec962b274022f

Stefan Sperling 2019-04-13T16:11:37

flip order of arguments to got_object_blob_create()

diff --git a/lib/got_lib_object_create.h b/lib/got_lib_object_create.h
index ae70623..79dd142 100644
--- a/lib/got_lib_object_create.h
+++ b/lib/got_lib_object_create.h
@@ -15,4 +15,4 @@
  */
 
 const struct got_error *got_object_blob_create(struct got_object_id **,
-    struct got_repository *, const char *);
+    const char *, struct got_repository *);
diff --git a/lib/object_create.c b/lib/object_create.c
index 9a45cab..8118523 100644
--- a/lib/object_create.c
+++ b/lib/object_create.c
@@ -44,8 +44,8 @@
 #endif
 
 const struct got_error *
-got_object_blob_create(struct got_object_id **id, struct got_repository *repo,
-    const char *ondisk_path)
+got_object_blob_create(struct got_object_id **id, const char *ondisk_path,
+    struct got_repository *repo)
 {
 	const struct got_error *err = NULL, *unlock_err = NULL;
 	char *header = NULL, *objpath = NULL, *outpath = NULL;