]> git.ipfire.org Git - thirdparty/git.git/commit
attr: read attributes from HEAD when bare repo
authorJohn Cai <johncai86@gmail.com>
Fri, 13 Oct 2023 17:39:29 +0000 (17:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Oct 2023 18:43:29 +0000 (11:43 -0700)
commit2386535511d1181afd4e892e2a866ffe5e1d7d21
treede06be51d889c1f33076a04b96a3dc8f79febca4
parent43c8a30d150ecede9709c1f2527c8fba92c65f40
attr: read attributes from HEAD when bare repo

The motivation for 44451a2e5e (attr: teach "--attr-source=<tree>" global
option to "git" , 2023-05-06), was to make it possible to use
gitattributes with bare repositories.

To make it easier to read gitattributes in bare repositories however,
let's just make HEAD:.gitattributes the default. This is in line with
how mailmap works, 8c473cecfd (mailmap: default mailmap.blob in bare
repositories, 2012-12-13).

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
t/t0003-attributes.sh
t/t5001-archive-attr.sh