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

Re: [PATCH] Allow ':/<oneline-prefix>' syntax to work with save_commit_buffer == 0

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 3, 2007, 22:52 UTC
Message-ID
<Pine.LNX.4.64.0712032249260.27959@racer.site>
In-Reply-To
<7vhcizh38y.fsf@gitster.siamese.dyndns.org>
Hi,
On Mon, 3 Dec 2007, Junio C Hamano wrote:
Show 22 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> > ---
> >
> > 	On Mon, 3 Dec 2007, Jeff King wrote:
> >
> > 	> On Mon, Dec 03, 2007 at 10:55:15AM +0000, Johannes Schindelin wrote:
> > 	> 
> > 	> > 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.
> > 	> 
> > 	> Agreed.
> >
> > 	Here we go.
> 
> The log message is a bit lacking.  I would have expected "git-show
> command can take ':/prefix' as an argument to name a commit whose
> subject begins with the prefix, but git-foobar command didn't and
> instead errored out.  This fixes it so that ':/prefix' syntax can be
> used for any command that wants to take a commit object name".
Sorry.  Can I ask you to amend the commit message with this?

-- snip -- Earlier, ':/<oneline-prefix>' would not work (i.e. die) with commands that set save_commit_buffer = 0, such as blame, describe, pack-objects, reflog and bundle.

Fix this. -- snap --

Thanks, Dscho

Previous: Junio C Hamano
Message 11 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.