PoC of Git in Python
Tested on Python 3.9.5
python -m unittest discover tests
coverage run -m unittest discover tests
coverage report -m
--------------------------------------
Language files blank comment code
--------------------------------------
Python 30 223 43 775
Markdown 2 24 0 69
YAML 1 5 4 27
C 2 1 0 8
make 1 0 0 3
--------------------------------------
SUM: 181 253 47 1027
--------------------------------------
test:
-------------------------------------
Language files blank comment code
-------------------------------------
Python 6 78 13 240
C 1 1 0 5
-------------------------------------
SUM: 7 79 13 245
-------------------------------------
Commands to implement:
- init
- hash-object
- cat-file
- add
- ls-files
- write-tree
- commit