From: Dave Boutcher Date: Thu, 23 Apr 2015 01:48:04 GMT Subject: Re: [PATCH 1/3] git-multimail: Add an option to filter on branches Message-ID: In-Reply-To: <553789B6.7030501@alum.mit.edu> On Wed, Apr 22, 2015 at 7:44 PM, Michael Haggerty wrote: > I think what you are looking for is > > return any(r.match(branch) for r in branches) Yup, thats exactly what I wanted. I'll submit an updated patch > I was also wondering why you decided to support comma-separated lists of > regexps *and* multivalued config settings. It seems that supporting only > multivalued settings would suffice. In practice we are using gitolite and git-multimail. Allowing both means our gitolite.conf file can look like repo foo # always notify on master config multimailhook.branches = master # notify for the current pre-release branches config multimailhook.branches = v1.7-pre, v1.8-pre -- Dave B