Commit Diff


commit - 70e2377c0226613312687962277bc22835bbf250
commit + 9d2a8e53001829e269993f447f64cde7978a9415
blob - 0116d689259b746f3b210c9d0268f0d4a67ad2cf
blob + 111eba88f1fbb135027e58689c5903153f73067b
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -546,11 +546,6 @@ got_fileindex_read(struct got_fileindex *fileindex, FI
 
 	return NULL;
 }
-
-static const struct got_error *
-diff_fileindex_tree(struct got_fileindex *, struct got_fileindex_entry **,
-    struct got_tree_object *, const char *, struct got_repository *,
-    struct got_fileindex_diff_cb *, void *);
 
 struct got_fileindex_entry *
 walk_fileindex(struct got_fileindex *fileindex, struct got_fileindex_entry *ie)
@@ -567,6 +562,11 @@ walk_fileindex(struct got_fileindex *fileindex, struct
 }
 
 static const struct got_error *
+diff_fileindex_tree(struct got_fileindex *, struct got_fileindex_entry **,
+    struct got_tree_object *, const char *, struct got_repository *,
+    struct got_fileindex_diff_cb *, void *);
+
+static const struct got_error *
 walk_tree(struct got_tree_entry **next, struct got_fileindex *fileindex,
     struct got_fileindex_entry **ie, struct got_tree_entry *te,
     const char *path, struct got_repository *repo,