{"id":19863260,"url":"https://github.com/allyourcodebase/libgit2","last_synced_at":"2025-06-24T21:37:40.985Z","repository":{"id":250388340,"uuid":"834318887","full_name":"allyourcodebase/libgit2","owner":"allyourcodebase","description":"libgit2 ported to the Zig build system","archived":false,"fork":false,"pushed_at":"2024-08-31T23:47:16.000Z","size":36,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-12T15:14:06.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allyourcodebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-26T23:45:25.000Z","updated_at":"2024-10-19T04:50:45.000Z","dependencies_parsed_at":"2024-07-28T11:02:16.362Z","dependency_job_id":null,"html_url":"https://github.com/allyourcodebase/libgit2","commit_stats":null,"previous_names":["allyourcodebase/libgit2"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibgit2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibgit2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibgit2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibgit2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allyourcodebase","download_url":"https://codeload.github.com/allyourcodebase/libgit2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233497461,"owners_count":18685062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T15:14:09.156Z","updated_at":"2025-06-24T21:37:40.977Z","avatar_url":"https://github.com/allyourcodebase.png","language":"Zig","readme":"# libgit2\nThis is [libgit2](https://libgit2.org/) packaged using Zig's build system.\nCurrently only supports Windows and Linux targets.\n\nWhile libgit2 supports many different options for system dependencies, I've opted to use [MbedTLS](https://www.trustedfirmware.org/projects/mbed-tls/) by default on Linux for TLS, crypto, and certificate support. You can replace MbedTLS with OpenSSL if you prefer. SSH support is optional, and is provided by [libssh2](https://libssh2.org/). \nAll other dependencies are bundled in the source tree and compiled statically.\n\n## Usage\nUpdate your `build.zig.zon`:\n```sh\nzig fetch --save git+https://github.com/allyourcodebase/libgit2\n# or if you want a tagged release\nzig fetch --save https://github.com/allyourcodebase/libgit2/archive/refs/tags/${tag}.tar.gz\n```\n\nThen, in your `build.zig`, you can access the library as a dependency:\n```zig\nconst libgit2_dep = b.dependency(\"libgit2\", .{\n    .target = target,\n    .optimize = optimize,\n    .@\"enable-ssh\" = true, // optional ssh support via libssh2\n    .@\"tls-backend\" = .openssl, // use openssl instead of mbedtls\n});\nyour_compile_step.linkLibrary(libgit_dep.artifact(\"git2\"));\n```\n\nDon't forget to import headers too:\n```zig\nconst c = @cImport({\n    @cInclude(\"git2.h\");\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Flibgit2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallyourcodebase%2Flibgit2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Flibgit2/lists"}