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

Re: [PATCH] Build in shortlog

From
Junio C Hamano <junkio@cox.net>
Date
Nov 11, 2006, 21:36 UTC
Message-ID
<7virhlis3e.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0610221322370.14200@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
> diff --git a/path-list.c b/path-list.c
> index 0c332dc..f8800f8 100644
> --- a/path-list.c
> +++ b/path-list.c
> @@ -57,7 +57,7 @@ struct path_list_item *path_list_insert(
>  	int index = add_entry(list, path);
>  
>  	if (index < 0)
> -		index = 1 - index;
> +		index = -1 - index;
>  
>  	return list->items + index;
>  }

This part looks like a genuine bugfix and unrelated to shortlog.

Many callers of path_list_insert() seem to ignore its return value, but merge_recursive.c seems to use it in three places, to find an entry to hang cached rename information to in insert_stage_data().

I haven't come up with an example to demonstrate the breakage of not having this fix in the existing git-merge-recursive, but I think this needs to be applied to even 'maint'.

Previous: Johannes Schindelin
Message 4 of 4 in “Build in shortlog”
  1. Build in shortlogJohannes Schindelin, Oct 22, 2006
  2. A Large Angry SCMOct 22, 2006
  3. Johannes SchindelinOct 22, 2006
  4. Junio C HamanoNov 11, 2006

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.