]> Sergey Matveev's repositories - public-inbox.git/commit
git: use --batch-command in git 2.36+ to save processes
authorEric Wong <e@80x24.org>
Thu, 26 Jan 2023 09:32:56 +0000 (09:32 +0000)
committerEric Wong <e@80x24.org>
Fri, 27 Jan 2023 08:18:00 +0000 (08:18 +0000)
commit65db62eb006fdbe74348f0e8f2ef9b9e938cb90b
tree7f1f2ed4e9dcb26b331686474861dd1b4da569f4
parentcc37f7c9858d46638a0eea7333912f74c05cb708
git: use --batch-command in git 2.36+ to save processes

`git cat-file --batch-command' combines the functionality of
`--batch' and `--batch-check' into a single process.  This
reduces the amount of running processes and is primarily
useful for coderepos (e.g. solver).

This also fixes prior use of `print { $git->{out} }' which is
a a potential (but unlikely) bug since commit d4ba8828ab23f278
(git: fix asynchronous batching for deep pipelines, 2023-01-04)

Lack of libgit2 on one of my test machines also uncovered fixes
necessary for t/imapd.t, t/nntpd.t and t/nntpd-v2.t.
lib/PublicInbox/Git.pm
lib/PublicInbox/GitAsyncCat.pm
t/nntpd.t