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

Re: [ANNOUNCE] GIT 1.0.7

From
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date
Jan 7, 2006, 08:16 UTC
Message-ID
<20060107.021614.94523887.yoshfuji@linux-ipv6.org>
In-Reply-To
<7vhd8go71t.fsf@assigned-by-dhcp.cox.net>
In article <7vhd8go71t.fsf@assigned-by-dhcp.cox.net> (at Fri, 06 Jan 2006 23:01:34 -0800), Junio C Hamano <junkio@cox.net> says:
> GIT 1.0.7 is available at http://www.kernel.org/pub/software/scm/git/

Allow compilation w/ gcc 2.95.4. (Or, it is okay to replace path[] with path[0].)

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
diff --git a/describe.c b/describe.c
index 84d96b5..3688c4a 100644
--- a/describe.c
+++ b/describe.c
@@ -17,8 +17,8 @@ static int abbrev = DEFAULT_ABBREV;
 static int names = 0, allocs = 0;
 static struct commit_name {
 	const struct commit *commit;
+	char *path;
 	int prio; /* annotated tag = 2, tag = 1, head = 0 */
-	char path[];
 } **name_array = NULL;
 
 static struct commit_name *match(struct commit *cmit)
@@ -43,6 +43,7 @@ static void add_to_known_names(const cha
 	struct commit_name *name = xmalloc(sizeof(struct commit_name) + len);
 
 	name->commit = commit;
+	name->path = sizeof(*name);
 	name->prio = prio; 
 	memcpy(name->path, path, len);
 	idx = names;
-- 
YOSHIFUJI Hideaki @ USAGI Project  <yoshfuji@linux-ipv6.org>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
Previous: Junio C HamanoNext: David S. Miller
Message 2 of 11 in “[ANNOUNCE] GIT 1.0.7”
  1. Junio C HamanoJan 7, 2006
  2. YOSHIFUJI Hideaki / 吉藤英明Jan 7, 2006
  3. David S. MillerJan 7, 2006
  4. YOSHIFUJI Hideaki / 吉藤英明Jan 7, 2006
  5. Junio C HamanoJan 7, 2006
  6. Junio C HamanoJan 7, 2006
  7. Sergey VlasovJan 7, 2006
  8. Junio C HamanoJan 7, 2006
  9. H. Peter AnvinJan 7, 2006
  10. Junio C HamanoJan 7, 2006
  11. H. Peter AnvinJan 7, 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.