From: Nicolas Pitre Date: Tue, 22 May 2007 16:04:59 GMT Subject: Re: [PATCH 2/2] Teach "delta" attribute to pack-objects. Message-ID: In-Reply-To: <11795608922961-git-send-email-junkio@cox.net> On Sat, 19 May 2007, Junio C Hamano wrote: > This teaches pack-objects to use .gitattributes mechanism so > that the user can specify certain blobs are not worth spending > CPU cycles to attempt deltification. [...] > @@ -1349,6 +1376,10 @@ static void find_deltas(struct object_entry **list, int window, int depth) > > if (entry->size < 50) > continue; > + > + if (entry->no_try_delta) > + continue; > + > free_delta_index(n->index); > n->index = NULL; > free(n->data); > @@ -1376,6 +1407,8 @@ static void find_deltas(struct object_entry **list, int window, int depth) > m = array + other_idx; > if (!m->entry) > break; > + if (m->entry->no_try_delta) > + continue; > if (try_delta(n, m, max_depth) < 0) > break; > } This last hunk is unnecessary. Because of the other hunk above, the no_try_delta objects will never get into the m array. Well done otherwise. This attribute thing is really nice. Nicolas