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

Re: [PATCH] git send-email: include [anything]-by: signatures

From
MTMichael S. Tsirkin <mst@redhat.com>
Date
Sep 4, 2013, 08:09 UTC
Message-ID
<20130904080928.GA30491@redhat.com>
In-Reply-To
<xmqqk3ixpoue.fsf@gitster.dls.corp.google.com>
On Tue, Sep 03, 2013 at 02:39:05PM -0700, Junio C Hamano wrote:
Show 32 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > On Wed, Sep 04, 2013 at 12:01:49AM +0300, Michael S. Tsirkin wrote:
> >
> >> > The question of course is the first point Peff raised.  I am not
> >> > sure offhand what the right per-project customization interface
> >> > would be.  A starting point might be something like:
> >> > 
> >> > 	--cc-trailer=signed-off-by,acked-by,reviewed-by
> >> 
> >> tested-by, reported-by ...
> >
> > Yeah, I think having the list customizable is nice, but not allowing
> > some pattern matching seems unfriendly, as it requires the user to
> > enumerate a potentially long list.
> >
> >> > 	--cc-trailer='*-by'
> >> > 
> >> > and an obvious configuration variable that gives the default for it.
> >> > That would eventually allow us not to special case any fixed set of
> >> > trailers like S-o-b like the current code does, which would be a big
> >> > plus.
> >> 
> >> What bothers me is that git normally uses gawk based patterns,
> >> but send-email is in perl so it has a different syntax for regexp.
> >> What do you suggest?  Make a small binary to do the matching for us?
> >
> > Would fnmatch-style globbing (like "*-by") be enough? That should be
> > easy to do in perl.
> 
> Web query finds File::FnMatch; I do not know if that is the most
> commonly used, or if it comes with the base distribution, though.

It's also just a wrapper for the system's fnmatch - so I expect it doesn't work in the mingw environment.

-- 
MST
Previous: Junio C Hamano
Message 10 of 10 in “git send-email: include [anything]-by: signatures”
  1. git send-email: include [anything]-by: signaturesMichael S. Tsirkin, Aug 26, 2013
  2. Michael S. TsirkinAug 31, 2013
  3. Jeff KingSep 3, 2013
  4. Michael S. TsirkinSep 3, 2013
  5. Junio C HamanoSep 3, 2013
  6. Michael S. TsirkinSep 3, 2013
  7. Jeff KingSep 3, 2013
  8. Michael S. TsirkinSep 3, 2013
  9. Junio C HamanoSep 3, 2013
  10. Michael S. TsirkinSep 4, 2013

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.