tree-cache.c
3.91 KB
-
tree cache: loosen negative entry count check · 08f3d6ca
While C Git has been writing entry count -1 (ie. never other negative numbers) as invalid since day 1, it accepts all negative entry counts as invalid. JGit follows the same rule. libgit2 should also follow, or the index that works with C Git or JGit may someday be rejected by libgit2. Other reimplementations like dulwich and grit have not bothered with parsing or writing tree cache.
Nguyễn Thái Ngọc Duy committed