Replies: 1 comment 1 reply
-
Hey, thanks for the question! As you've already noted, we don't provide a stable Go language API within the That said, it's an open-source project, so you're of course able to pick and choose any bits of the source code you want (so long as you provide appropriate attribution in any published results according to our license, obviously). In particular, you might want to look at a few files like Good luck with your project, and let us know how it goes! |
Beta Was this translation helpful? Give feedback.
-
I am trying to write a Go program that interacts via REST APIs with git-lfs. I have Go code that creates git trees (and later commits and branches) via the github API like this:
I would like to push certain of these blobs to git-lfs and store the appropriate pointer information in git, and I would like to do this via REST APIs, avoiding checking out the whole repository locally, and avoiding calling out to separate executables.
I see in the top-level readme of this repository that you warn:
I also have found the Batch API docs here: https://github.com/git-lfs/git-lfs/blob/main/docs/api/batch.md
Are there any libraries that would help me interact directly with the Batch API from a Go program? For experimental work, are there any parts of this repository that I might make use of for that purpose?
My goal is to create blobs in git-lfs and reference them as appropriate in git blobs/trees/commits, using Go, without checking out the whole repository into the filesystem and without calling out to any separate executable.
Any pointers whatsoever would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions