[asdf-devel] tab-blocking commit hook

Robert Goldman rpgoldman at sift.info
Thu Jan 14 22:47:32 UTC 2010


On 1/14/10 Jan 14 -11:29 AM, dherring at tentpost.com wrote:
> Robert Goldman wrote:
>> Is there some reason that this cannot be pushed into the repository
>> itself (i.e., used like a blur/clean thing)?  See the bottom of this
>> page: http://progit.org/book/ch7-2.html
>>
>> I.e., we just automagically detabify when staging.
>>
>> It seems inappropriate to expect everyone to fuss with his/her own
>> repository to get this behavior.  Shouldn't we do it once on the shared
>> repo and we all get it for free?
> 
> That's a good idea, but probably not workable.  First, I don't think the
> script will run on stock mswin.  Even if it did, I'm not sure there's a
> syntax to run a filter located within the repository (think initial
> checkout).

Can you amplify on this?  Isn't the smear/clean thing, which I cited
from that Pro Git book, running a filter located within the repository?

It works on initial checkout, because you have the repo before you do
any checkout....
> 
> In other words, the attributes filter provides a natural hook for this
> type of thing; but I'm not sure its any easier for the end user to set up.
>  At least the commit hook is optional.

Um.  But having the commit hook be optional is a bug, not a feature, right?

r




More information about the asdf-devel mailing list