svn - What about the git storage system -


maybe stupid question, i'd raise here since it's not clear me: git commit file content snapshot relative svn commit delta storage systems, mean git needs more disk space svn ? thinks shall delta in reasonable.

logically, git stores every file (actually, every object) in repository , identifies them sha1. can @ yourself, objects in directories in .git/objects identified first 2 characters of sha1.

but git supports storing (and transferring) objects in called packfile. file contains objects compressed using zlib. can contain delta-compressed objects reference object in same packfile (it doesn't have previous version of same file).

objects saved normal files compressed packfile when call git gc. happens automatically during of git operations produce “loose objects”.

because of this, git working directory smaller svn working directory. great, considering git working dir contains history of repo. (svn working dir twice size of files in it. that's because contains copy of every file diffing , commiting.)


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -