mirror of
https://github.com/git/git
synced 2024-10-12 11:32:34 +00:00
9f9c40cf34
44451a2
(attr: teach "--attr-source=<tree>" global option to "git",
2023-05-06) provided the ability to pass in a treeish as the attr
source. In the context of serving Git repositories as bare repos like we
do at GitLab however, it would be easier to point --attr-source to HEAD
for all commands by setting it once.
Add a new config attr.tree that allows this.
Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
8 lines
434 B
Plaintext
8 lines
434 B
Plaintext
attr.tree::
|
|
A reference to a tree in the repository from which to read attributes,
|
|
instead of the `.gitattributes` file in the working tree. In a bare
|
|
repository, this defaults to `HEAD:.gitattributes`. If the value does
|
|
not resolve to a valid tree object, an empty tree is used instead.
|
|
When the `GIT_ATTR_SOURCE` environment variable or `--attr-source`
|
|
command line option are used, this configuration variable has no effect.
|