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

Re: [PATCH/RFC] Use regex for :/ matching

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 3, 2007, 10:55 UTC
Message-ID
<Pine.LNX.4.64.0712031052410.27959@racer.site>
In-Reply-To
<20071203043258.GA16658@coredump.intra.peff.net>
Hi,
On Sun, 2 Dec 2007, Jeff King wrote:
Show 9 quoted lines
> The sha1 syntax :/ used to be a strict prefix match.
> Instead, let's use a regular expression, which can save on
> typing. E.g.,
> 
>   git show :/"object name: introduce ':/<oneline prefix>'"
> 
> vs
> 
>   git show :/introduce..:/.oneline
Heh: 
http://repo.or.cz/w/git/dscho.git?a=commitdiff;h=2546cd9732bb8d4bc1d2485ba7bbc1d5c8bac935

Except that I did not support ".." (does yours?), _and_ that my patch is not as nice as yours.

But then, my patch also works when save_commit_buffer == 0. But I can refactor this into its own patch, since it really is a separate issue.

Ciao, Dscho

Previous: Jeff KingNext: Jeff King
Message 2 of 11 in “Use regex for :/ matching”
  1. Use regex for :/ matchingJeff King, Dec 3, 2007
  2. Johannes SchindelinDec 3, 2007
  3. Jeff KingDec 3, 2007
  4. Junio C HamanoDec 3, 2007
  5. Jeff KingDec 6, 2007
  6. Junio C HamanoDec 6, 2007
  7. Jeff KingDec 6, 2007
  8. Johannes SchindelinDec 6, 2007
  9. Allow ':/<oneline-prefix>' syntax to work with save_commit_buffer == 0Johannes Schindelin, Dec 3, 2007
  10. Junio C HamanoDec 3, 2007
  11. Johannes SchindelinDec 3, 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.