Re: [PATCH] git-http-fetch: Allow caching of retrieved objects byproxy servers

From: Petr Baudis <>
Date: 2005-09-19 23:35:08
Dear diary, on Mon, Sep 19, 2005 at 12:24:45PM CEST, I got a letter
where sf <> told me that...
> >remember that git objects are identified by their sha1, if the sha1 is 
> >what you want (and the file matches the sha1 after you decompress it) 
> >then it really doesn't matter what it's on-disk representation is.
> You are arguing on the git tool level but we are talking about HTTP 
> which knows nothing about the uncompressed sha1.
> The OP assumed that "files in a GIT repository are immutable" which is 
> not true. If you consider the sequence
> pack -> prune -> update zlib or git -> unpack
> you can end up with different files if the new zlib implementation 
> changes imcompatibly (with respect to byte-by-byte compression results) 
> or if git suddenly does not use the default compression level any more.

Yes, but why should this matter? It shouldn't matter if you get the old
"version" or the new version of the file over HTTP, the actual object's
contents is still the same, and GIT shouldn't care.

				Petr "Pasky" Baudis
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Mon Sep 19 23:36:12 2005

This archive was generated by hypermail 2.1.8 : 2005-09-19 23:36:14 EST