Jakub Narebski <jnareb@gmail.com> wrote:Estimating the entropy would make it "just magic". Most of Git is "just magic" so that's a good direction to take. I'm not familiar enough with the PDF/JPG/GZIP/ZIP stream formats to know what the first 4-8k looks like to know if it would give a good indication of being already compressed. Though I'd imagine looking at the first 4k should be sufficient for any compressed file. Having a header composed of 4k of _text_ before binary compressed data would be nuts. Or a git-bundle with a large refs listing. ;-) Using a gitattribute inside of pack-objects is not "simple". We currently only support reading attributes from the working directory if I recall correctly. pack-objects may not have a working directory. Hence, "just magic" is probably the better route. -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Andrew Morton | -mm merge plans for 2.6.23 |
| Rafael J. Wysocki | [Bug #11207] VolanoMark regression with 2.6.27-rc1 |
| Zhang, Yanmin | AIM7 40% regression with 2.6.26-rc1 |
| Con Kolivas | [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2 |
git: | |
| Gregory Haskins | [RFC PATCH 03/17] vbus: add connection-client helper infrastructure |
| David Woodhouse | [PATCH 03/30] solos: FPGA and firmware update support. |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
