summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-21 03:14:13 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-24 22:38:51 -0700
commitaa4ed402c9721170fde2e9e43c3825562070e65e (patch)
treebd53ad59439661046b506c7b42153bb3caeb9009 /shell.c
parent3fed15f568c24ec00ef78fddc6cbb881fbbb0277 (diff)
downloadgit-aa4ed402c9721170fde2e9e43c3825562070e65e.tar.gz
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>
Diffstat (limited to 'shell.c')
0 files changed, 0 insertions, 0 deletions