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

Re: BUG: mergetool fails on gitignore:d files

From
Jeff King <peff@peff.net>
Date
Jun 1, 2009, 02:03 UTC
Message-ID
<20090601020349.GA32740@coredump.intra.peff.net>
In-Reply-To
<20090530215418.GA19241@coredump.intra.peff.net>
On Sat, May 30, 2009 at 05:54:18PM -0400, Jeff King wrote:
Show 13 quoted lines
> diff --git a/dir.c b/dir.c
> index 0e6b752..bbfcb56 100644
> --- a/dir.c
> +++ b/dir.c
> @@ -396,7 +396,7 @@ static struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathna
>  
>  static struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len)
>  {
> -	if (cache_name_pos(pathname, len) >= 0)
> +	if (!cache_name_is_other(pathname, len))
>  		return NULL;
>  
>  	ALLOC_GROW(dir->ignored, dir->ignored_nr+1, dir->ignored_alloc);

I was all set to write a test for this and re-submit, but you seem to have beat me to it. Thanks. :)

-Peff
Previous: Jeff KingNext: Junio C Hamano
Message 4 of 5 in “BUG: mergetool fails on gitignore:d files”
  1. Erik SandbergMay 30, 2009
  2. Markus HeidelbergMay 30, 2009
  3. Jeff KingMay 30, 2009
  4. Jeff KingJun 1, 2009
  5. Junio C HamanoJun 1, 2009

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.