wincent / masochist

⛓ Website infrastructure for over-engineers
MIT License
78 stars 26 forks source link

Update Git from v2.40.1 to v2.44.0 or similar #223

Open wincent opened 5 months ago

wincent commented 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).

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: