From: Johannes Sixt Date: Thu, 15 Nov 2007 07:57:42 GMT Subject: Re: Integrating with hooks Message-ID: <473BFBF6.7070902@viscovery.net> In-Reply-To: <20071115011837.GD32746@penguin.codegnome.org> Todd A. Jacobs schrieb: > On Wed, Nov 14, 2007 at 12:07:29AM +0100, Jakub Narebski wrote: > >> Take a look at gitattributes(5), namely 'filter' attribute. > > Thanks, I took a look at the man page you suggested. The "ident" feature > almost does what I want, but doesn't seem to take any sort of format > string. So, I thought I'd explore "filter," but can't really find any > examples of how to implement the smudge and clean commands, which seem > to be what I'm really trying to do here. A clean and smudge filter processes one file at a time. It reads the old content from stdin and writes the result to stdout. There is a tiny example in the test suite, t/t0021-conversion.sh, look for rot13.sh. -- Hannes