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

[PATCH 1/6] fetch.c: Do not build object ref lists

From
Sergey Vlasov <vsu@altlinux.ru>
Date
Sep 23, 2005, 12:28 UTC
Message-ID
<20050923122813.27F56E010FC@center4.mivlgu.local>
In-Reply-To
<20050923122754.GB2197@master.mivlgu.local>

The fetch code does not need object ref lists; by disabling them we can save some time and memory.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
---
 fetch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
cf77c02b386647f312a86ffc342b010ae55725cd
diff --git a/fetch.c b/fetch.c
--- a/fetch.c
+++ b/fetch.c
@@ -206,6 +206,7 @@ int pull(char *target)
 	int fd = -1;
 
 	save_commit_buffer = 0;
+	track_object_refs = 0;
 	if (write_ref && current_ref) {
 		fd = lock_ref_sha1(write_ref, current_ref);
 		if (fd < 0)
Previous: Sergey VlasovNext: Sergey Vlasov
Message 2 of 7 in “More fetch fixes”
  1. 0/6 More fetch fixesSergey Vlasov, Sep 23, 2005
  2. 1/6 fetch.c: Do not build object ref listsSergey Vlasov, Sep 23, 2005
  3. 2/6 fetch.c: Plug memory leak in process_tree()Sergey Vlasov, Sep 23, 2005
  4. 3/6 git-local-fetch: Fix error checking and leak in setup_indices()Sergey Vlasov, Sep 23, 2005
  5. 4/6 git-local-fetch: Avoid calling close(-1)Sergey Vlasov, Sep 23, 2005
  6. 5/6 Fix "git-local-fetch -s" with packed source repositorySergey Vlasov, Sep 23, 2005
  7. 6/6 git-local-fetch: Avoid confusing error messages on packed repositoriesSergey Vlasov, Sep 23, 2005

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.