{"id":13804809,"url":"https://github.com/place-labs/git-repository","last_synced_at":"2026-04-24T13:31:29.039Z","repository":{"id":115258360,"uuid":"488767462","full_name":"place-labs/git-repository","owner":"place-labs","description":"remote git repository inspection","archived":false,"fork":false,"pushed_at":"2025-12-12T03:15:51.000Z","size":59,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-13T10:14:55.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/place-labs.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-04T23:04:51.000Z","updated_at":"2025-12-12T03:12:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"0afe9185-8ee6-470e-a96c-bc7dbe5cc927","html_url":"https://github.com/place-labs/git-repository","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/place-labs/git-repository","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/place-labs%2Fgit-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/place-labs%2Fgit-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/place-labs%2Fgit-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/place-labs%2Fgit-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/place-labs","download_url":"https://codeload.github.com/place-labs/git-repository/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/place-labs%2Fgit-repository/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32225732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":"2024-08-04T01:00:54.150Z","updated_at":"2026-04-24T13:31:29.021Z","avatar_url":"https://github.com/place-labs.png","language":"Crystal","funding_links":[],"categories":["CLI Utils"],"sub_categories":[],"readme":"# Git Client for inspecting remote git repositories\n\n[![CI](https://github.com/place-labs/git-repository/actions/workflows/ci.yml/badge.svg)](https://github.com/place-labs/git-repository/actions/workflows/ci.yml)\n\nThe aim of this shard is to inspect any remote git repository\n\n* fetch repository details remotely (default branch, branches and tags)\n* obtain log history without downloading any files\n* fetch any branch, tag or commit without downloading history. Minimal data transfer\n\n## Installation\n\nAdd the dependency to your `shard.yml`:\n\n  ```yaml\n    dependencies:\n      git-repository:\n        github: place-labs/git-repository\n  ```\n\n## Usage\n\nNOTE:: We shell out to `git` to perform these operations\n\n```crystal\n\nrepo = GitRepository.new(\"https://github.com/your/repo\", \"optional_user\", \"optional_pass\")\n\nrepo.default_branch # =\u003e \"main\"\nrepo.branches       # =\u003e {\"feature1\" =\u003e \"\u003chead_hash\u003e\", \"main\" =\u003e \"\u003chead_hash\u003e\"}\nrepo.tags           # =\u003e {\"v1.1.0\" =\u003e \"\u003ccommit_hash\u003e\", \"v1.0.0\" =\u003e \"\u003ccommit_hash\u003e\"}\nrepo.commits(\"main\", depth: 5) # =\u003e [Commit]\n\n# Fetch the head of the selected branch\nrepo.fetch_branch(\"main\", \"./your_repo_folder\")\n\n# Fetch the repo at a specific commit or tag\nrepo.fetch_commit(\"v1.1.0\", \"./your_repo_folder\")\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplace-labs%2Fgit-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplace-labs%2Fgit-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplace-labs%2Fgit-repository/lists"}