]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStore.pm
lei_input: set and prepare watches early
[public-inbox.git] / lib / PublicInbox / LeiStore.pm
index 6c557d9976f078ac799c64579d4ed8e955e53001..0fa2d3c08ba901e12f0900786f6bd9a3fab18e9d 100644 (file)
@@ -537,4 +537,11 @@ sub git_blob_id { # called via LEI->git_blob_id
        git_sha(1, $eml)->hexdigest;
 }
 
+# called by lei-daemon before lei->refresh_watches
+sub add_sync_folders {
+       my ($self, @folders) = @_;
+       my $lms = _lms_rw($self);
+       for my $f (@folders) { $lms->fid_for($f, 1) }
+}
+
 1;