author | Pete Wyckoff <pw@padd.com> | |
Wed, 22 Dec 2010 14:40:13 +0000 (06:40 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Dec 2010 18:19:32 +0000 (10:19 -0800) | ||
commit | a2b665de4b694b04959f6371f9887f7ad5cae404 | |
tree | 7b4329b53414d676d14c62cc225a88e7f9136e29 | tree | snapshot |
parent | 853563d7344ee532aa56f8a9aabcfdfb5c4fe2c3 | commit | diff |
convert filter: supply path to external driver
Filtering to support keyword expansion may need the name of
the file being filtered. In particular, to support p4 keywords
like
$File: //depot/product/dir/script.sh $
the smudge filter needs to know the name of the file it is
smudging.
Allow "%f" in the custom filter command line specified in the
configuration. This will be substituted by the filename
inside a single-quote pair to be passed to the shell.
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Filtering to support keyword expansion may need the name of
the file being filtered. In particular, to support p4 keywords
like
$File: //depot/product/dir/script.sh $
the smudge filter needs to know the name of the file it is
smudging.
Allow "%f" in the custom filter command line specified in the
configuration. This will be substituted by the filename
inside a single-quote pair to be passed to the shell.
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitattributes.txt | diff | blob | history | |
convert.c | diff | blob | history | |
t/t0021-conversion.sh | diff | blob | history |