Skip to content

git: Set attr.tree for git commands

Eric Ju requested to merge eju/6064/use-attr.tree into master

In Git change 2386535511, we introduced a feature: "attr: read attributes from HEAD when bare repo". This causes a performance degradation. Current workaround is to get rid of the default behavior in bare repos of reading from HEAD by setting attr.tree to empty tree.

This MR add a global configuration "attr.tree=empty tree" to all git commands by default. We also have a white list of commands whose "attr.tree" is set to HEAD

Closes #6064 (closed)

Edited by Eric Ju

Merge request reports