
10/12/2023 · Christian Couder
What this post added
This post details four specific contributions from GitLab's Git team to the Git 2.42 release: 1. Added `--include` and `--exclude` options to `git pack-refs` to allow finer control over which references are packed, crucial for write-ahead logging in Gitaly. 2. Implemented the `-Z` option for `git cat-file --batch` to use NUL characters as delimiters for both input and output, resolving issues with newlines in filenames and error messages. 3. Enabled passing pseudo-options (e.g., `--not`, `--glob`, `--all`) via stdin to `git rev-list --stdin`, improving flexibility for tasks like calculating repository sizes for pool repositories. 4. Contributed code style improvements and refactoring to the Git codebase.