{"id":14069290,"url":"https://github.com/timvisee/git-state","last_synced_at":"2026-04-20T04:02:40.444Z","repository":{"id":66230180,"uuid":"309220266","full_name":"timvisee/git-state","owner":"timvisee","description":"🧪 Probe git repository state","archived":false,"fork":false,"pushed_at":"2021-10-15T10:36:50.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T07:14:48.497Z","etag":null,"topics":["git","git-state","git2"],"latest_commit_sha":null,"homepage":"https://gitlab.com/timvisee/git-state","language":"Rust","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/timvisee.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":"2020-11-02T00:45:52.000Z","updated_at":"2023-04-07T21:59:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"63579482-1590-4730-ac89-61f879b294a9","html_url":"https://github.com/timvisee/git-state","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timvisee/git-state","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvisee%2Fgit-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvisee%2Fgit-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvisee%2Fgit-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvisee%2Fgit-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timvisee","download_url":"https://codeload.github.com/timvisee/git-state/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvisee%2Fgit-state/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["git","git-state","git2"],"created_at":"2024-08-13T07:06:48.871Z","updated_at":"2026-04-20T04:02:40.393Z","avatar_url":"https://github.com/timvisee.png","language":"Rust","readme":"[![Build status on GitLab CI][gitlab-ci-master-badge]][gitlab-ci-link]\n[![Newest release on crates.io][crate-version-badge]][crate-link]\n[![Documentation][docs-badge]][docs]\n[![Project license][crate-license-badge]](LICENSE)\n\n[crate-license-badge]: https://img.shields.io/crates/l/git-state.svg\n[crate-link]: https://crates.io/crates/git-state\n[crate-version-badge]: https://img.shields.io/crates/v/git-state.svg\n[docs-badge]: https://docs.rs/git-state/badge.svg\n[docs]: https://docs.rs/git-state\n[gitlab-ci-link]: https://gitlab.com/timvisee/git-state/pipelines\n[gitlab-ci-master-badge]: https://gitlab.com/timvisee/git-state/badges/master/pipeline.svg\n\n# git-state\nA simple binary and Rust library to probe the state of a git repository.\nUseful for shell prompts.\n\nThis reimplements [`git2::git_repository_state`][git2-function] in pure Rust.\nThis doesn't have any nasty compile or runtime `git2` dependencies.\nThe git command-line interface doesn't provide this functionality.\n\n## States\nAny of the following state is returned:\n\n```\nClean\nMerge\nRevert\nRevertSequence\nCherryPick\nCherryPickSequence\nBisect\nRebase\nRebaseInteractive\nRebaseMerge\nApplyMailbox\nApplyMailboxOrRebase\n```\n\n## Usage\nCommand-line usage:\n\n```bash\ncd my-repository/\ngit-state\n\n# or\ngit-state my-repository/\n```\n\n## License\nThis project is released under the MIT license.\nCheck out the [LICENSE](LICENSE) file for more information.\n\n[git2-function]: https://libgit2.org/libgit2/#HEAD/group/repository/git_repository_state\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimvisee%2Fgit-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimvisee%2Fgit-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimvisee%2Fgit-state/lists"}