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

Re: [PATCH] userdiff: allow * between cpp funcname words

From
Jeff King <peff@peff.net>
Date
Dec 6, 2011, 19:02 UTC
Message-ID
<20111206190217.GD9492@sigill.intra.peff.net>
In-Reply-To
<a639d328e15bce3057de9238ee31097d15850de1.1323189110.git.trast@student.ethz.ch>
On Tue, Dec 06, 2011 at 05:35:08PM +0100, Thomas Rast wrote:
Show 14 quoted lines
> The cpp pattern, used for C and C++, would not match the start of a
> declaration such as
> 
>   static char *prepare_index(int argc,
> 
> because it did not allow for * anywhere between the various words that
> constitute the modifiers, type and function name.  Fix it.
> 
> Signed-off-by: Thomas Rast <trast@student.ethz.ch>
> ---
> 
> This is a really sneaky one-character bug that I cannot believe went
> unnoticed for so long, seeing as there are plenty of instances within
> git itself where it matters.
Looks reasonable to me. You can see the difference, for instance, with:
  git show -U1 3c73a1d

(The -U1 is because of the annoying "we will start looking for the header at the top of context, not the top of changes" behavior I mentioned last week).

-Peff
Previous: Thomas RastNext: Thomas Rast
Message 2 of 9 in “userdiff: allow * between cpp funcname words”
  1. userdiff: allow * between cpp funcname wordsThomas Rast, Dec 6, 2011
  2. Jeff KingDec 6, 2011
  3. Thomas RastDec 6, 2011
  4. Jeff KingDec 6, 2011
  5. Johannes SixtDec 6, 2011
  6. René ScharfeDec 6, 2011
  7. Junio C HamanoDec 6, 2011
  8. Thomas RastDec 7, 2011
  9. Johannes SixtDec 7, 2011

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.