Code

Add global and system-wide gitattributes
authorPetr Onderka <gsvick@gmail.com>
Tue, 31 Aug 2010 22:42:43 +0000 (00:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2010 19:19:36 +0000 (12:19 -0700)
commit6df42ab98480dcac473ca7d701cfca4a0051d0c1
tree7b0f2000cf0d92335e966838eb77bb37f09f51d9
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9
Add global and system-wide gitattributes

Allow gitattributes to be set globally and system wide. This way, settings
for particular file types can be set in one place and apply for all user's
repositories.

The location of system-wide attributes file is $(prefix)/etc/gitattributes.
The location of the global file can be configured by setting
core.attributesfile.

Some parts of the code were copied from the implementation of the same
functionality in config.c.

Signed-off-by: Petr Onderka <gsvick@gmail.com>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/gitattributes.txt
Makefile
attr.c
configure.ac
t/t0003-attributes.sh