Skip to content

Commit 5c71d6b

Browse files
committed
attr.tree: HEAD:.gitattributes is no longer the default in a bare repo
51441e6 (stop using HEAD for attributes in bare repository by default, 2024-05-03) has addressed a recent performance regression by partially reverting a topic that was merged at 26dd307 (Merge branch 'jc/attr-tree-config', 2023-10-30). But it forgot to update the documentation to remove the mention of a special case in bare repositories. Let's update the document before the update hits the next release. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 51441e6 commit 5c71d6b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Documentation/config/attr.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
attr.tree::
22
A reference to a tree in the repository from which to read attributes,
3-
instead of the `.gitattributes` file in the working tree. In a bare
4-
repository, this defaults to `HEAD:.gitattributes`. If the value does
5-
not resolve to a valid tree object, an empty tree is used instead.
3+
instead of the `.gitattributes` file in the working tree. If the value
4+
does not resolve to a valid tree object, an empty tree is used instead.
65
When the `GIT_ATTR_SOURCE` environment variable or `--attr-source`
76
command line option are used, this configuration variable has no effect.

0 commit comments

Comments
 (0)