{"id":16711771,"url":"https://github.com/bburdette/git-at-revision","last_synced_at":"2025-07-11T04:38:54.209Z","repository":{"id":145134786,"uuid":"205255527","full_name":"bburdette/git-at-revision","owner":"bburdette","description":"Retreive a git repo as of the specified SHA, unless you already did that.","archived":false,"fork":false,"pushed_at":"2019-09-06T15:54:07.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T19:51:16.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bburdette.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}},"created_at":"2019-08-29T21:46:41.000Z","updated_at":"2019-09-06T15:54:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b25336e-dfd3-408a-8c09-f2b98b625d47","html_url":"https://github.com/bburdette/git-at-revision","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.21052631578947367","last_synced_commit":"dfa96d1e00bcedd760d3a5f635c8db67c9674bcc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fgit-at-revision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fgit-at-revision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fgit-at-revision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bburdette%2Fgit-at-revision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bburdette","download_url":"https://codeload.github.com/bburdette/git-at-revision/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681077,"owners_count":20330155,"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-10-12T20:26:25.525Z","updated_at":"2025-03-15T04:13:42.087Z","avatar_url":"https://github.com/bburdette.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-at-revision\n\nThis is a little commandline gadget to clone a git repo as of a certain\nrevision (SHA).  Unless you already did that in which case nothing happens.\n\nIts not on crates.io yet, so clone this repo and then build it with the rust build tool cargo:\n\n\u003e  cargo install --path .\n\nUsage: \n\u003e  git-at-revision \\\u003csha\\\u003e \\\u003crepo-url\\\u003e \\\u003ctarget-directory\\\u003e --dirtyok\n\nprogram logic is more or less like this:\n  \n    does the target dir exist?\n      yes - \n        is it the right revision?\n          yes - \n            is it modified, or are there untracked files?\n              yes - \n                error, unless --dirtyok.\n              no - \n                success.\n          no - \n            checkout revision.  success?\n              yes - return.\n              no - \n                git fetch, retry checkout.  success?\n                  no - fail.\n                  yes - success.\n      no - \n        clone repo.  success?\n          yes - checkout revision.  success?\n            yes - success.\n            no - error.\n          no - \n            error.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbburdette%2Fgit-at-revision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbburdette%2Fgit-at-revision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbburdette%2Fgit-at-revision/lists"}