A mini Git in Python

The problem

Write a small version control system in Python that stores real Git objects, so that its ids match git hash-object, and supports the everyday commands.

Requirements

Technologies

Step by step

  1. Implement hash-object and an object store, and compare ids with git hash-object.
  2. Add the index, add and commit, writing tree and commit objects.
  3. Add status, log and diff using the algorithms from the course.
  4. Add branches, HEAD and switching, refusing to overwrite local changes.
  5. Add merge-base and three-way merging, then test on example histories.

Expected result

A working mini Git whose objects real Git can read, built from the ideas in the course.

How it is evaluated

Ways to improve it