Browse Source

docs: notes on listing files from git server apis

exploring the possibility of listing files, showing commit messages,
etc via api calls across git server implementations
master
DanConwayDev 2 years ago
parent
commit
ad541f6a38
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 5
      src/routes/git_proxy/readme/[readme_url]/+server.ts

5
src/routes/git_proxy/readme/[readme_url]/+server.ts

@ -36,4 +36,9 @@ export const GET = async ({ params }: { params: { readme_url: string } }) => { @@ -36,4 +36,9 @@ export const GET = async ({ params }: { params: { readme_url: string } }) => {
// * 'git clone' is too expensive for retrieving single files. even when
// done using treeless or blobless flags. see:
// https://noise.getoto.net/2020/12/21/get-up-to-speed-with-partial-clone-and-shallow-clone/
// files can be listed at:
// * gitea / forgejo https://codeberg.org/api/v1/repos/DanConwayDev/ngit-cli/git/trees/HEAD
// * github - https://api.github.com/repos/DanConwayDev/ngit-cli/git/trees/HEAD?recursive=1
// * gitlab - tbc
// * gogs - needs testing - https://github.com/gogs/docs-api/
}

Loading…
Cancel
Save