Home / Companies / GitHub / Blog / Post Details
Content Deep Dive

Git 2.11 has been released

Blog post from GitHub

Post Details
Company
Date Published
Author
Jeff King
Word Count
2,261
Language
English
Hacker News Points
-
Summary

Git 2.11.0 introduces significant improvements to enhance both usability and performance, addressing issues such as abbreviated SHA-1 collisions and optimizing delta chains for faster operations. As repositories grow, the risk of SHA-1 collision increases, prompting Git 2.11 to scale abbreviation lengths with repository size and provide better tools to resolve ambiguities, including listing potential candidates for ambiguous SHA-1s and allowing configuration for preferred object types. Performance enhancements include optimizing access to delta chains by limiting their depth to 50 objects and improving the delta base cache, which results in a 10% performance boost on large repositories. Additionally, object lookups have been expedited through a most recently used (MRU) strategy for handling multiple packfiles, significantly speeding up repacking processes. The update also speeds up patch ID computation for git rebase, introduces an advanced filter protocol to reduce overhead in filtering numerous files, and includes various enhancements like a new diff algorithm and a more script-friendly output for git status. These changes, alongside other minor improvements, reflect contributions from over 70 contributors and comprise over 650 commits in total.