swish/commit

New upstream files

authorJan Wielemaker
Thu May 3 12:58:24 2018 +0200
committerJan Wielemaker
Thu May 3 12:58:24 2018 +0200
commit58a047979f715bb72668f4642f8aecef46e41582
tree6109ecd7aea6e7af847ba9a015d1738c067cd687
parentf8327848a42134522bf4eac324a76b30de2847c3
Diff style: patch stat
diff --git a/lib/swish/gitty_driver_files.pl b/lib/swish/gitty_driver_files.pl
index 42f7450..196753f 100644
--- a/lib/swish/gitty_driver_files.pl
+++ b/lib/swish/gitty_driver_files.pl
@@ -109,6 +109,9 @@ to rounding the small objects to disk allocation units.
     attached_packs/1,
     attached_pack/2.
 
+:- multifile
+    gitty:check_object/4.
+
 % enable/disable syncing remote servers running on  the same file store.
 % This facility requires shared access to files and thus doesn't work on
 % Windows.
diff --git a/lib/swish/storage.pl b/lib/swish/storage.pl
index 77cabe7..3d6e1bb 100644
--- a/lib/swish/storage.pl
+++ b/lib/swish/storage.pl
@@ -637,6 +637,10 @@ storage_fsck :-
 %	`files` driver. For database drivers  this   is  supposed  to be
 %	handled by the database.
 
+:- multifile
+	gitty_driver_files:repack_objects/2,
+	gitty_driver_files:unpack_packs/1.
+
 storage_repack :-
 	storage_repack([]).
 storage_repack(Options) :-
@@ -646,6 +650,12 @@ storage_repack(Options) :-
 	;   print_message(informational, gitty(norepack(driver)))
 	).
 
+%!	storage_unpack
+%
+%	Unpack all packed objects of the  store. Currently only supports
+%	the `files` driver. For database drivers  this is supposed to be
+%	handled by the database.
+
 storage_unpack :-
 	open_gittystore(Dir),
 	(   gitty_driver(Dir, files)