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

[PATCH] Make pull not assume anything about current objects

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 1, 2005, 17:33 UTC
Message-ID
<Pine.LNX.4.21.0505011327160.30848-100000@iabervon.org>

Previously, pull assumed that, if you have a commit, you either have or don't want everything it references. Change this to actually check locally on everything you want, to be completely sure.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Index: pull.c
===================================================================
--- 6f0f1d99169f9d90aa44e47d1bcff7b1dd4d8ea0/pull.c  (mode:100644 sha1:86a7b6901fe69a82c12c3470b456982ef52cebd0)
+++ 661b090ca8652d2cfa299b4cac3ffceebdd2b43c/pull.c  (mode:100644 sha1:90d2d41ed2c56580f72f020bc93c3e1b8a3befa5)
@@ -48,8 +48,6 @@
 	if (get_history) {
 		struct commit_list *parents = obj->parents;
 		for (; parents; parents = parents->next) {
-			if (has_sha1_file(parents->item->object.sha1))
-				continue;
 			if (fetch(parents->item->object.sha1)) {
 				/* The server might not have it, and
 				 * we don't mind. 
Message 1 of 1 in “Make pull not assume anything about current objects”
  1. Make pull not assume anything about current objectsDaniel Barkalow, May 1, 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.