author | Junio C Hamano <junkio@cox.net> | |
Sat, 21 Apr 2007 10:14:13 +0000 (03:14 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 25 Apr 2007 05:38:51 +0000 (22:38 -0700) | ||
commit | aa4ed402c9721170fde2e9e43c3825562070e65e | |
tree | bd53ad59439661046b506c7b42153bb3caeb9009 | tree | snapshot |
parent | 3fed15f568c24ec00ef78fddc6cbb881fbbb0277 | commit | diff |
Add 'filter' attribute and external filter driver definition.
The interface is similar to the custom low-level merge drivers.
First you configure your filter driver by defining 'filter.<name>.*'
variables in the configuration.
filter.<name>.clean filter command to run upon checkin
filter.<name>.smudge filter command to run upon checkout
Then you assign filter attribute to each path, whose name
matches the custom filter driver's name.
Example:
(in .gitattributes)
*.c filter=indent
(in config)
[filter "indent"]
clean = indent
smudge = cat
Signed-off-by: Junio C Hamano <junkio@cox.net>
The interface is similar to the custom low-level merge drivers.
First you configure your filter driver by defining 'filter.<name>.*'
variables in the configuration.
filter.<name>.clean filter command to run upon checkin
filter.<name>.smudge filter command to run upon checkout
Then you assign filter attribute to each path, whose name
matches the custom filter driver's name.
Example:
(in .gitattributes)
*.c filter=indent
(in config)
[filter "indent"]
clean = indent
smudge = cat
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/gitattributes.txt | diff | blob | history | |
convert.c | diff | blob | history | |
t/t0021-conversion.sh | diff | blob | history |