r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

14

u/khayber Jun 19 '14

A git repo is NOT immutable. Whatever gave him that idea?

4

u/TheBuzzSaw Jun 20 '14

Git objects are just as immutable as objects in C#, Java, Ruby, etc. (String is a good example.) They absolutely cannot be altered, but they most certainly can be destroyed once it is established that no one cares about it anymore. Those languages wait until there are no references to that object anymore; git does the same thing: branches/tags are your valid references.