Re: Integrating with hooks
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 15, 2007, 01:43 UTC
- Message-ID
- <fhg87q$k21$1@ger.gmane.org>
- In-Reply-To
- <20071115011837.GD32746@penguin.codegnome.org>
Todd A. Jacobs wrote:
Show 7 quoted lines
> 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.
The `ident` feature provides only sensible Id for a file (if you want to avoid potentially rewriting _all_ and not only changed files on checkout / switching branch / reset --hard). All Ids which have commit info, like commit id, commit date, author are not sensible in mentioned sense.
Show 7 quoted lines
> 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. > > Is there an example somewhere that you can point me to? The man page > doesn't really show any examples of how to implement the filter > attribute, so I'm a little unsure how to proceed.
Cannot help you there, but see examples of `diff` and `merge` attributes, it should I think be similar.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git