HACKER Q&A
📣 solarmist

Git repos add an arbitrary time/change dimension to files?


I've seen some interesting applications of git over the years, such as using it as a database, but today something clicked when I was thinking about using version control in other fields/domains.

Git is a way to arbitrarily add a time (or change) dimension to files.

As a thought experiment, if we restrict the size of a repo to a single file and type and add a new image with every commit, we've recreated an animated gif or a primitive video format.

Using branches, you could have some form of choose-your-own-animation files. It also implies that we can use a discrete (well, for images, you could argue discrete or continuous) form of calculus to analyze these changes.

I haven't read any accounts of taking git or other VCS in this direction.

Who else has had ideas like this? For novel uses of git.

What are some of the implications here?


  👤 solarmist Accepted Answer ✓
Even more generally, it makes a single file repo a directed graph of changes.

I feel like that's too general though; it removes intuition for many people about implications though. It also ignores the timestamps that become part of it.


👤 32gbsd
I skipped the whole git thing. Took away so much time from my activities i just gave up on it. Nowadays i no longer worry about my code spontaneously combusting.