]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
lg2: use cfgwr_commit to write to configs using libgit2
authorEric Wong <e@80x24.org>
Sat, 15 Feb 2025 11:10:11 +0000 (11:10 +0000)
committerEric Wong <e@80x24.org>
Mon, 17 Feb 2025 20:09:10 +0000 (20:09 +0000)
commita8073f6c1136d16d5aafd6d084eb0f6aca63c76e
tree01b2b42ed7576102278eb88de3b97f7368e45351
parentf799f94e96c02f6b879363e65649c4777ebdb4a6
lg2: use cfgwr_commit to write to configs using libgit2

libgit2 allows us to avoid process spawning overhead when
writing to the config file.  While the performance difference is
unlikely to matter in real-world use, it should improve
maintainability of tests by allowing us to write tests with
`public-inbox-init' with a smaller performance penalty (as
opposed to using `PublicInbox::IO::write_file' to setup
configs).
MANIFEST
lib/PublicInbox/CfgWr.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/MultiGit.pm
lib/PublicInbox/lg2.h
t/lg2_cfg.t [new file with mode: 0644]
xt/check-run.t