Questions tagged [git-api]
5 questions
1
vote
0 answers
How to get the download link of all files in a repo?
With the following command, I'm able to get download_url for the files on my GitHub repo, but it doesn't include files that are inside folders:
curl -H "Authorization: token ghp_..." -H "Accept: application/vnd.github.v3.raw" -L…

Jabu
- 51
- 4
0
votes
0 answers
getting unknown type name uint8_t errors when using libgit2 as a shared library
I'm trying to use the third-party library libgit2 in my C project, but I'm encountering errors when trying to compile. While using systems like github codespaces, Windows, or my MacOS X ventura workstation, I've tried the following command to…

Chaitanya Sharma
- 1
- 1
0
votes
0 answers
C# - 403 whith GitHub API request
I'm having an a 403 response when I try to get the content of a repo on GitHub.
Using a curl command "
curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer " -H "X-GitHub-Api-Version: 2022-11-28"…

Arun kumar
- 1
- 1
0
votes
0 answers
git index lock - how to release it - get it back before/after making a git subprocess call
I am working on a new merge-strategy to be used during rebases, specifically. I have setup the merge-strategy as a separate git builtin and it seems to be working correctly. The merge strategy will only write on the index/worktree if it succeeds…

eftshift0
- 26,375
- 3
- 36
- 60
0
votes
1 answer
git api - how to get parents (and their trees) of a commit?
I am working on a new git built-in. I am taking a commit (that I am pulling using lookup_commit_reference_by_name) and then I want to go through the parents to check their trees. I try to get the tree object with get_commit_tree, unfortunately it…

eftshift0
- 26,375
- 3
- 36
- 60