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

Re: [PATCH] builtin-bundle - use buffered reads for bundle header

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 11, 2007, 00:31 UTC
Message-ID
<7vk5s2rjxj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<11867920441883-git-send-email-mdl123@verizon.net>

Is this just me (I am writing this from an unfamiliar terminal), or is your patch somehow breaks all indentation?

 /* returns an fd */
 static int read_header(const char *path, struct bundle_header *header) {
 	char buffer[1024];
-	int fd = open(path, O_RDONLY);
+	int fd;
+    long fpos;
+    FILE *ffd = fopen(path, "r");
Previous: Mark LevedahlNext: Mark Levedahl
Message 4 of 5 in “builtin-bundle.c - use stream buffered input for rev-list”
  1. builtin-bundle.c - use stream buffered input for rev-listMark Levedahl, Aug 10, 2007
  2. Junio C HamanoAug 10, 2007
  3. builtin-bundle - use buffered reads for bundle headerMark Levedahl, Aug 11, 2007
  4. Junio C HamanoAug 11, 2007
  5. builtin-bundle - use buffered reads for bundle headerMark Levedahl, Aug 11, 2007

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.