Hacker News new | ask | show | jobs
by ultramann 335 days ago
I'm aware of go-git [0] which

> aims to be fully compatible with git, all the porcelain operations are implemented to work exactly as git does

written in pure go, therefore with a go native api.

I've never tried to use it, but it does look quite impressive to me.

[0] https://github.com/go-git/go-git

2 comments

it’s slow, not great. at a previous place we used go-git and wound up switching to just shelling out to git.
I've used it - it's lacking a ton of features. Another commenter in this thread said it's very slow compared to the git CLI, which is not surprising given that git is written in C.
I’ve used it for a production service. I thought it was surprisingly robust/featureful. There was one issue I ran into, but IIRC it was a limitation in the library’s filesystem abstraction, not a missing feature.