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

[PATCH RFC 4/5] reachable: Made the gc aware of the ce_norm_sha1.

From
Henrik Grubbström (Grubba) <grubba@grubba.org>
Date
Apr 16, 2010, 16:10 UTC
Message-ID
<b352ea29de407108dae6840e459f85e6f3005dda.1271432034.git.grubba@grubba.org>
In-Reply-To
<cover.1271432034.git.grubba@grubba.org>
Avoid having the gc zap the normalized blobs in the index.
Signed-off-by: Henrik Grubbström <grubba@grubba.org>
---
 reachable.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/reachable.c b/reachable.c
index b515fa2..61ea623 100644
--- a/reachable.c
+++ b/reachable.c
@@ -191,6 +191,8 @@ static void add_cache_refs(struct rev_info *revs)
 		 * added them as objects, we've really done everything
 		 * there is to do for a blob
 		 */
+		if (active_cache[i]->norm_flags)
+			lookup_blob(active_cache[i]->norm_sha1);
 	}
 	if (active_cache_tree)
 		add_cache_tree(active_cache_tree, revs);
-- 
1.7.0.4.369.g81e89
Previous: Henrik Grubbström (Grubba)Next: Henrik Grubbström (Grubba)
Message 5 of 18 in “Patches to avoid reporting conversion changes.”
  1. 0/5 Patches to avoid reporting conversion changes.Henrik Grubbström (Grubba), Apr 16, 2010
  2. 1/5 sha1_file: Added index_blob().Henrik Grubbström (Grubba), Apr 16, 2010
  3. 2/5 cache: Added ce_norm_sha1() and related cache_entry fields.Henrik Grubbström (Grubba), Apr 16, 2010
  4. 3/5 cache: Added index extension "NORM".Henrik Grubbström (Grubba), Apr 16, 2010
  5. 4/5 reachable: Made the gc aware of the ce_norm_sha1.Henrik Grubbström (Grubba), Apr 16, 2010
  6. 5/5 cache: Use ce_norm_sha1().Henrik Grubbström (Grubba), Apr 16, 2010
  7. Junio C HamanoApr 20, 2010
  8. Henrik GrubbströmApr 20, 2010
  9. Junio C HamanoApr 20, 2010
  10. Henrik GrubbströmApr 25, 2010
  11. Jari AaltoApr 16, 2010
  12. Randal L. SchwartzApr 16, 2010
  13. Jari AaltoApr 17, 2010
  14. Randal L. SchwartzApr 17, 2010
  15. Sverre RabbelierApr 17, 2010
  16. Jakub NarebskiApr 17, 2010
  17. Sverre RabbelierApr 17, 2010
  18. Randal L. SchwartzApr 17, 2010

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.