Set global config attr.tree to HEAD
There was a performance degradation that was identified as a result of a Git change 2386535511 (attr: read attributes from HEAD when bare repo, 2023-10-13).
The proposal in https://lore.kernel.org/git/xmqqzft6aozg.fsf_-_@gitster.g/ is to get rid of the default behavior in bare repos of reading from HEAD
. This means that we would need to set our attr.tree
to HEAD
in Gitaly.
The concern about performance still stands however, so I've created git#316 to track a Git fix to fix the codepath that leads to the traversing of trees excessively during git-pack-objects
Actions
-
create a separate issue on investigating performance #6079 (closed) -
set global global attr.tree = empty_tree
-
investigate what commands/gRPCs use gitattributes -
selectively allow attr.tree = HEAD
for related commands or gRPCs- git-diff
- git-merge
- git-check-attr
- git-archive
- git-worktree
Edited by John Cai