]> Sergey Matveev's repositories - public-inbox.git/commit
multi_git: hoist out common epoch/alternates handling
authorEric Wong <e@80x24.org>
Wed, 15 Sep 2021 11:26:17 +0000 (11:26 +0000)
committerEric Wong <e@80x24.org>
Wed, 15 Sep 2021 17:44:11 +0000 (17:44 +0000)
commit375b3ccfd3ca978281cb3869b62fc91eebc60d6e
tree057ef3935df6a56a3de4ecccf36f4f6537a0749b
parent311c711c56e8ba829d0efaf43a8910c904089707
multi_git: hoist out common epoch/alternates handling

IMHO, this greatly improves code sharing and organization
between v2, extindex, and lei/store.  Common git-related
logic for these is lightly-refactored and easier to reason
about.

The impetus for this big change was to ensure inboxes
created+managed by public-inbox-{clone,fetch} could have
alternates and configs setup properly without depending on
SQLite (via V2Writable).  This change does that while
making old code shorter and better factored.
MANIFEST
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/Fetch.pm
lib/PublicInbox/LeiMirror.pm
lib/PublicInbox/LeiStore.pm
lib/PublicInbox/MultiGit.pm [new file with mode: 0644]
lib/PublicInbox/V2Writable.pm
script/public-inbox-convert
t/lei-mirror.t
t/v2mirror.t
t/v2writable.t