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

Re: [PATCH] Teach "log -F --author=<match>" to behave better

From
Petr Baudis <pasky@suse.cz>
Date
Sep 4, 2008, 14:09 UTC
Message-ID
<20080904140902.GY10544@machine.or.cz>
In-Reply-To
<7vprnk5n3c.fsf_-_@gitster.siamese.dyndns.org>
On Thu, Sep 04, 2008 at 01:31:19AM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> To handle --author=<match> request, the code created a grep instruction
> that tried to match a line that begins with 'author ' and <match>
> somewhere on the same line.  "begins with 'author '" obviously needs to be
> expressed with an regexp '^author '.
> 
> When the user specifies --fixed-string, this does not work at all.
> 
> This extends the grep machinery so that a match insn can ignore user
> specified --fixed-string request, and uses the '( -e A --and -e B )'
> construct from the grep machinery in order to express "has to begin with
> '^author ', and also the same line must match the given pattern".
> 
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Wow, this is clever solution! FWIW,
Acked-by: Petr Baudis <pasky@suse.cz>
There goes one of my long-standing TODO items. :-)
Previous: Giuseppe BilottaNext: Junio C Hamano
Message 9 of 13 in “git rev-list --author/--committer b0rked with -F/--fixed-strings”
  1. Giuseppe BilottaSep 4, 2008
  2. Junio C HamanoSep 4, 2008
  3. Teach "log -F --author=<match>" to behave betterJunio C Hamano, Sep 4, 2008
  4. Teemu LikonenSep 4, 2008
  5. Junio C HamanoSep 4, 2008
  6. Teemu LikonenSep 4, 2008
  7. Junio C HamanoSep 5, 2008
  8. Giuseppe BilottaSep 4, 2008
  9. Petr BaudisSep 4, 2008
  10. Junio C HamanoSep 4, 2008
  11. --all-matchTeemu Likonen, Sep 5, 2008
  12. Junio C HamanoSep 5, 2008
  13. Giuseppe BilottaSep 4, 2008

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.