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

Re: [PATCH 1/3] read-trees: refactor the unpack_trees() part

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 31, 2006, 00:48 UTC
Message-ID
<Pine.LNX.4.63.0607310238170.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<Pine.LNX.4.63.0607310205260.29667@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,
On Mon, 31 Jul 2006, Johannes Schindelin wrote:
> How about this (on top of that patch):
> 
> -- 8< --
> [PATCH 1.5/3] unpack-trees: please C99 standard

Of course, I got bitten by "git-commit" not regarding any git-update-index'ed files after starting the editor... This is needed as well:

diff --git a/unpack-trees.c b/unpack-trees.c
index 3cb92cb..e595d23 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -381,6 +381,7 @@ int unpack_trees(struct object_list *tre
 	state.refresh_cache = 1;
 
 	o->merge_size = len;
+	memset(&df_conflict_entry, 0, sizeof(df_conflict_entry));
 	o->df_conflict_entry = &df_conflict_entry;
 
 	if (len) {

Sorry for the noise.

Ciao,
Dscho
Previous: Johannes Schindelin
Message 4 of 4 in “read-trees: refactor the unpack_trees() part”
  1. 1/3 read-trees: refactor the unpack_trees() partJohannes Schindelin, Jul 30, 2006
  2. Junio C HamanoJul 30, 2006
  3. Johannes SchindelinJul 31, 2006
  4. Johannes SchindelinJul 31, 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.