{"id":36790693,"url":"https://github.com/csmith/gitrefs","last_synced_at":"2026-01-20T16:34:17.624Z","repository":{"id":39878566,"uuid":"410104635","full_name":"csmith/gitrefs","owner":"csmith","description":"List references from repote git repos in go","archived":false,"fork":false,"pushed_at":"2025-11-20T13:42:20.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T15:26:18.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/csmith.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-24T21:20:01.000Z","updated_at":"2025-11-20T13:42:22.000Z","dependencies_parsed_at":"2025-07-08T17:23:56.590Z","dependency_job_id":"ff3de82d-8273-4188-bad2-d21cec1b0da0","html_url":"https://github.com/csmith/gitrefs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/csmith/gitrefs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Fgitrefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Fgitrefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Fgitrefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Fgitrefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csmith","download_url":"https://codeload.github.com/csmith/gitrefs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csmith%2Fgitrefs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-12T13:25:19.921Z","updated_at":"2026-01-12T13:25:20.169Z","avatar_url":"https://github.com/csmith.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitrefs\n\nProvides a simple way to list references from a remote git repository over HTTP, without needing a full git client or a\ncheckout of the remote repository.\n\nExample:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/csmith/gitrefs\"\n)\n\nfunc main() {\n\trefs, err := gitrefs.Fetch(\"https://github.com/csmith/gitrefs\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor r := range refs {\n\t\tfmt.Printf(\"Ref %s at commit %s\\n\", r, refs[r])\n\t}\n}\n```\n\nA utility method to retrieve only the latest semver tag is included:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/csmith/gitrefs\"\n)\n\nfunc main() {\n\ttag, hash, err := gitrefs.LatestTag(\"https://github.com/csmith/gitrefs\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"Latest tag is %s at commit %s\\n\", tag, hash)\n}\n```\n\nProtocol docs:\n- https://www.git-scm.com/docs/http-protocol\n- https://git-scm.com/docs/pack-protocol\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsmith%2Fgitrefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsmith%2Fgitrefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsmith%2Fgitrefs/lists"}