Commit Diff


commit - 80f0eb00bf4c3fc2dcfafeb2820e772a1ad179c3
commit + 3b339b2ff82475321e7d732db7c0cd4b3cc185bf
blob - 49c27b10f99d94b1ac7bced8c2a7d30c7c724446
blob + 3ca9626ba044cf3a00cb587c9d36e9c37ee0f39e
--- include/got_repository.h
+++ include/got_repository.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Stefan Sperling <stsp@openbsd.org>
+ * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -14,9 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-struct got_repository {
-	char *path;
-};
+struct got_repository;
 
 /* Open and close git repositories. */
 const struct got_error *got_repo_open(struct got_repository**, const char *);
blob - 35425149aec6f9f82de230270de16cf37bb95705
blob + d6d98432ae40d967631c3e36fdcffa59ee9f856f
--- lib/repository.c
+++ lib/repository.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Stefan Sperling <stsp@openbsd.org>
+ * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -26,6 +26,10 @@
 
 #include "path.h"
 
+struct got_repository {
+	char *path;
+};
+
 #define GOT_GIT_DIR	".git"
 
 /* Mandatory files and directories inside the git directory. */