[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] new default get_netsync_*_permitted hooks
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] new default get_netsync_*_permitted hooks |
Date: |
Sun, 23 Oct 2005 16:18:19 -0700 |
User-agent: |
Mutt/1.5.9i |
On Mon, Oct 24, 2005 at 06:59:44AM +1000, Daniel Carosone wrote:
> In general, there are a number of other hooks that could follow a
> similar pattern. Often I want to add one or two more things to a
> default list (after ignore, matching binary/text files is the example
> that next springs to mind). It worries me that I have to find and copy
> a default hook implementation, and then have it go out of date when
> the default is updated.
As a side note, there's a simple trick you can use for this sort of
thing, in lack of anything better ATM...:
# Add the .foo extension to the standard list of ignored files
default_ignore_file = ignore_file
function ignore_file(name)
if (string.find(name, "%.foo$")) then return true end
return default_ignore_file(name)
end
-- Nathaniel
--
"If you can explain how you do something, then you're very very bad at it."
-- John Hopfield
This email may be read aloud.
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, (continued)
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Wim Oudshoorn, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Richard Levitte - VMS Whacker, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/23
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Timothy Brownawell, 2005/10/25
- Re: [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Nathaniel Smith, 2005/10/26
- [Monotone-devel] Re: new default get_netsync_*_permitted hooks, Bruce Stephens, 2005/10/26
Re: [Monotone-devel] new default get_netsync_*_permitted hooks, Richard Levitte - VMS Whacker, 2005/10/23
Re: [Monotone-devel] new default get_netsync_*_permitted hooks, Daniel Carosone, 2005/10/23
- Re: [Monotone-devel] new default get_netsync_*_permitted hooks,
Nathaniel Smith <=