monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] [patch]attr_init_functions (auto-setup-exec-permissions


From: Joel Reed
Subject: [Monotone-devel] [patch]attr_init_functions (auto-setup-exec-permissions)
Date: Mon, 18 Apr 2005 08:59:11 -0400
User-agent: Mutt/1.5.5.1i

Ok, Nathaniel i reworked my "automatically add executable files to .mt-attrs
on monotone add patch" to use a lua hook and exposed is_executable as you
suggested.

the default attr_init hook for execute looks like this:

attr_init_functions["execute"] =
   function(filename)
      if (is_executable(filename)) then
        return "true"
      else
        return nil
      end
   end


let me know if you like it now,

jr

Attachment: m18-init-attributes.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]