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

Re: [PATCH] revision: allow selection of commits that do not match a pattern

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Jul 7, 2007, 16:52 UTC
Message-ID
<20070707165208.GC1528MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<Pine.LNX.4.64.0707071724410.4093@racer.site>
On Sat, Jul 07, 2007 at 05:27:23PM +0100, Johannes Schindelin wrote:
Show 5 quoted lines
> I suspect that with this patch,
> 
> 	git rev-list --not --grep bugfix HEAD
> 
> does not work as expected. Why?
Well... I guess that depends on what you expect...
Show 5 quoted lines
> Why not make "git rev-list --grep '!bugfix' HEAD" work?
> 
> Yes, you would have to have a special exception that the prefix "!!" 
> actually matches an exclamation mark, but I'd be willing to live with 
> that.

Hmm... what if you want to (not) match anything starting with one or more '!' ? How about I add a '--invert-match' option that would apply to all following match options? Or we could escape the '!' with backslash.

skimo
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 11 in “revision: allow selection of commits that do not match a pattern”
  1. revision: allow selection of commits that do not match a patternSven Verdoolaege, Jul 7, 2007
  2. Johannes SchindelinJul 7, 2007
  3. Sven VerdoolaegeJul 7, 2007
  4. Johannes SchindelinJul 7, 2007
  5. revision: allow selection of commits that do not match a patternSven Verdoolaege, Jul 7, 2007
  6. Johannes SchindelinJul 7, 2007
  7. Sven VerdoolaegeJul 7, 2007
  8. revision: allow selection of commits that do not match a patternSven Verdoolaege, Jul 8, 2007
  9. Johannes SchindelinJul 8, 2007
  10. Sven VerdoolaegeJul 8, 2007
  11. Jeff KingJul 11, 2007

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.