masochist
masochist copied to clipboard
Update Git from v2.40.1 to v2.44.0 or similar
~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).
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:
- https://github.com/wincent/masochist/issues/175