]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: support purging messages from git entirely
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Thu, 29 Mar 2018 09:57:50 +0000 (09:57 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Thu, 29 Mar 2018 10:00:02 +0000 (10:00 +0000)
commit623136f21efe82bf88fcd7fc4c733502c59f63e8
treeb8f7ef13ff242fbde2ee84a03e284bbca93f475a
parentcc44146289bd38a5f95d5dbab8b28016f2599fcb
v2writable: support purging messages from git entirely

Purging existing messages is fairly straightforward since we can
take advantage of Xapian and lookup the git object_id with it.

Unfortunately, purging an already "removed" message (which is
no longer in Xapian) is not as easy and we'll need to expose
->purge_oids to purge by the git object_id (currently SHA-1).

Furthermore, we expire reflogs and prune in hopes a dumb HTTP
client won't get the object.
lib/PublicInbox/Import.pm
lib/PublicInbox/V2Writable.pm
t/v2writable.t