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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Avoid having the gc zap the normalized blobs in the index.

Signed-off-by: Henrik Grubbström <grubba@xxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]