Compression of SVG(Z)s in git repositories

Aleix Pol aleixpol at kde.org
Tue Sep 2 16:09:40 UTC 2014


On Mon, Sep 1, 2014 at 12:59 PM, Elias Probst <mail at eliasprobst.eu> wrote:

> I've noticed, that (except of only a very few) nearly all SVG files are
> committed as SVGZ to our git repositories.
>
> This has IMHO several drawbacks:
> - every change will be stored as a single atomic blob
> - git's internal packfile compression and deduplication can't be used
> - no diffs for changes done to SVGs can be viewed
> - batch-editing of files via sed/awk/… is way more difficult
>
> I'd like to suggest to implement a git hook which enforces SVG files
> being pushed uncompressed.
> The compression of SVG to SVGZ might happen when building release tarballs.
>
> What are your thoughts? Any reasons not to do this?
>
> - Elias P.
>

I think it's a good idea.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140902/1b9ce31d/attachment.html>


More information about the Kde-frameworks-devel mailing list