Post 9xX6DU0jsPsaACPkps by gws@mastodon.host
 (DIR) More posts by gws@mastodon.host
 (DIR) Post #9xWAblABxeVayAhvWK by sir@cmpwn.com
       2020-07-27T17:14:59Z
       
       5 likes, 12 repeats
       
       An object can be a blob, tree, commit, or tag. An object is identified by its ID, which is a SHA.A blob is just some arbitrary data. Files are represented as blobs.Trees are a list of blob IDs and other tree IDs, and their names. Directories are represented as trees.A commit has a tree ID, an author, a date, a parent commit ID (or IDs, for a merge commit), and a commit message.A reference is just a commit ID. Branches are a kind of reference. The only information which is stored to represent "master" is the ID of the latest commit. To get the commit log, you just follow the parent ID in each commit. To get the contents, you look at the tree ID of that commit. To update master, create a new commit and write its ID to .git/refs/heads/master (which is a plaintext file).A tag has a commit ID, an author, and a message. It just calls out a specific commit as special, like a release number, and adds a message, such as that version's changelog.All git commands are just a means of manipulating what is ultimately a very simple data store. If you want to know more about how a specific command works and how it relates to this data store, let me know.
       
 (DIR) Post #9xWU02vLTgBW8F3cP2 by Tlacaelel@hispagatos.space
       2020-07-27T20:51:37Z
       
       0 likes, 0 repeats
       
       @sir Looking more into Ssb-git as decentralised git server technology
       
 (DIR) Post #9xX6DU0jsPsaACPkps by gws@mastodon.host
       2020-07-28T04:01:33Z
       
       0 likes, 1 repeats
       
       @sir If you don't mind, please, what is The Index made of?
       
 (DIR) Post #9xXKTZamIAdHStq0Se by abstractxan@fosstodon.org
       2020-07-28T06:38:52Z
       
       0 likes, 0 repeats
       
       @sir https://missing.csail.mit.edu/2020/version-control/
       
 (DIR) Post #9xXrRBCFJwJDiApV9E by sir@cmpwn.com
       2020-07-28T12:49:35Z
       
       0 likes, 0 repeats
       
       @gws the index is not simple, and is not ultimately derived from these principles. But you can learn about it by reading Documentation/technical/index-format.txt in the git source code
       
 (DIR) Post #9xYxIGLxZZ33yuSrJo by gws@mastodon.host
       2020-07-29T01:30:52Z
       
       0 likes, 1 repeats
       
       @sir Even though they say you shouldn't look a git horse in the mouth I am interested to read the source.But the real reason I asked is how good your explanation of objects was.  : )