git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] git-multimail: Add an option to filter on branches

From
Dave Boutcher <daveboutcher@gmail.com>
Date
Apr 23, 2015, 01:48 UTC
Message-ID
<CAEXuECj=m-TVfVzQAtw91bfgMEUvPDt4_PtN73SxWDWSZebpow@mail.gmail.com>
In-Reply-To
<553789B6.7030501@alum.mit.edu>
On Wed, Apr 22, 2015 at 7:44 PM, Michael Haggerty <mhagger@alum.mit.edu> 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
Previous: Michael Haggerty
Message 7 of 7 in “git-multimail: Add an option to filter on branches”
  1. 1/3 git-multimail: Add an option to filter on branchesDave Boutcher, Apr 21, 2015
  2. 2/3 git-multimail: Add a quiet option to prevent outputting email addresses from hookDave Boutcher, Apr 21, 2015
  3. 3/3 git-multimail: Add stdout option to configDave Boutcher, Apr 21, 2015
  4. Michael HaggertyApr 22, 2015
  5. Dave BoutcherApr 22, 2015
  6. Michael HaggertyApr 22, 2015
  7. Dave BoutcherApr 23, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.