catfile: Implement `--batch-command` mode behind a FF
Currently we have two separate subprocess which for git-cat-file(1). One for reading the info and the other for reading the contents.
With the introduction of --batch-command
flag in git v2.37.0. We can swap them out for a single process.
We rename existing code and add the new implementation behind a feature flag in this MR. After the rollout of the feature flag, we shall remove the old code and cleanup.
Part of #4420 (closed)
Edited by Karthik Nayak