seebi / dircolors-solarized

This is a repository of themes for GNU ls (configured via GNU dircolors) that support Ethan Schoonover’s Solarized color scheme.
http://ethanschoonover.com/solarized
MIT License
2.84k stars 452 forks source link

Don't include binary or compressed files in git #46

Closed rpdelaney closed 10 years ago

rpdelaney commented 10 years ago

As of 5044ba704075712f002dabb152cf847c8812720d you have your test suite stored in a bzip2 compressed file. This is not ideal for a few reasons:

  1. git already compresses plain text using delta compression and zlib. The disk space and bandwidth conserved with bzip2 will be minimal.
  2. Incremental changes to the test suite cannot be reviewed in the git log without checking out the old branches and doing a diff - a laborious process.
  3. git stores binary files completely in the revision tree since delta compression is not possible. That means that each revision to the compressed file gets stored anew with the commit, which in turn bloats the source tree -- completely defeating the purpose of saving disk space.

Further reading:

  1. https://stackoverflow.com/questions/11254733/can-git-differentially-store-gzip-files
  2. https://stackoverflow.com/questions/3329041/best-practice-to-store-jar-files-in-vcs-svn-git
seebi commented 10 years ago

Am I right, You suggest to just store a .tar file instead of .tar.bz2?

rpdelaney commented 10 years ago

It is recommended to store plain text files as plain text in git. Preferably they would not be archived at all, but rather stored together in a directory as text.