]> git.ipfire.org Git - thirdparty/git.git/commit - attr.h
attr: add attr.tree for setting the treeish to read attributes from
authorJohn Cai <johncai86@gmail.com>
Fri, 13 Oct 2023 17:39:30 +0000 (17:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Oct 2023 18:43:29 +0000 (11:43 -0700)
commit9f9c40cf34c29d4ad700d9869435d159056fa6fb
tree8e3b138390a996f68831accaeebe2fb9488f2382
parent2386535511d1181afd4e892e2a866ffe5e1d7d21
attr: add attr.tree for setting the treeish to read attributes from

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>
Documentation/config.txt
Documentation/config/attr.txt [new file with mode: 0644]
attr.c
attr.h
config.c
t/t0003-attributes.sh