Hacker News new | past | comments | ask | show | jobs | submit login

For anybody interested I've built a python lib to read the latest commit from a git repo: https://github.com/spapas/python-git-info/

This is a pure python implementation that started simple (just read a couple of files from the .git folder) but after a little I understood that for non trivial repos you'll need to deal with pack for files. Because I had already published the package I actually completed the pack parsing work but I have to confess that it's way too complex and I wouldn't have started the project if I knew better...

In any case the source is there if you want to take a look!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: