Open wincent opened 5 months ago
~Not sure when~ support for the -Z switch to git-cat-file was added in Git v2.42.0 (released August 2023). In testing out the new indexing mentioned in this comment I see the flag exists in the version I have locally (v2.44.0) but not in the Git that I have on EC2 (v2.40.1).
-Z
git-cat-file
Specifically, I want to run (the equivalent of):
git -C content ls-files --format='%(objectname)' -z -- ':!images' | \ git cat-file --batch='%(objectname)' -Z
to grab a list of all blob IDs, pipe them into git-cat-file, and get a dump of all the contents with a single fork call.
Related:
~Not sure when~ support for the
-Z
switch togit-cat-file
was added in Git v2.42.0 (released August 2023). In testing out the new indexing mentioned in this comment I see the flag exists in the version I have locally (v2.44.0) but not in the Git that I have on EC2 (v2.40.1).Specifically, I want to run (the equivalent of):
to grab a list of all blob IDs, pipe them into
git-cat-file
, and get a dump of all the contents with a single fork call.Related: