{"id":22958173,"url":"https://github.com/akiomik/git-branch-status","last_synced_at":"2025-08-02T21:34:38.575Z","repository":{"id":36963505,"uuid":"401696774","full_name":"akiomik/git-branch-status","owner":"akiomik","description":"A command line tool for displaying git branch colored by status","archived":false,"fork":false,"pushed_at":"2025-07-02T06:04:57.000Z","size":599,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T07:22:36.627Z","etag":null,"topics":["cli","git","git-branch","git-status","prompt","rust","vcs-information","zsh"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akiomik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["akiomik"],"patreon":null,"open_collective":null,"ko_fi":"akiomik","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-08-31T12:34:47.000Z","updated_at":"2025-07-02T06:04:59.000Z","dependencies_parsed_at":"2024-01-22T11:41:03.755Z","dependency_job_id":"26ecf7b7-f681-4e82-9c0b-74cf94ed2147","html_url":"https://github.com/akiomik/git-branch-status","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/akiomik/git-branch-status","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiomik%2Fgit-branch-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiomik%2Fgit-branch-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiomik%2Fgit-branch-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiomik%2Fgit-branch-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akiomik","download_url":"https://codeload.github.com/akiomik/git-branch-status/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akiomik%2Fgit-branch-status/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268457041,"owners_count":24253336,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":["cli","git","git-branch","git-status","prompt","rust","vcs-information","zsh"],"created_at":"2024-12-14T17:37:02.374Z","updated_at":"2025-08-02T21:34:38.508Z","avatar_url":"https://github.com/akiomik.png","language":"Rust","funding_links":["https://github.com/sponsors/akiomik","https://ko-fi.com/akiomik"],"categories":[],"sub_categories":[],"readme":"# git-branch-status\n\nA command line tool for displaying git branch colored by status, like zsh's [vcs_info](https://zsh.sourceforge.io/Doc/Release/User-Contributions.html#Version-Control-Information).\n\n![screenshot](screenshot.png?raw=true)\n\n## Installation\n\n```sh\ngit clone https://github.com/akiomik/git-branch-status.git \u0026\u0026 cd git-branch-status\ncargo build --release\ncp target/release/git-branch-status ~/bin\n```\n\n## Usage\n\n### Zsh\n\nAdd the following to `~/.zshrc`:\n\n```sh\n# ~/.zshrc\nsetopt prompt_subst\nRPROMPT='$(git branch-status --mode zsh)'\n```\n\n### Zsh with Starship 🚀\n\nAdd the following to `~/.config/starship.toml`:\n\n```sh\nformat = \"\"\"\n$directory\\\n$custom\\\n$line_break\\\n$character\"\"\"\n\n[custom.branchstatus]\ncommand = \"git branch-status --mode zsh\"\nwhen = \"[[ -d .git ]] || [[ `git rev-parse --git-dir \u003e /dev/null 2\u003e\u00261; echo $?` -eq 0 ]]\"\nformat = \" on $output\"\n```\n\n## Benchmark\n\nRun `./scripts/bench.sh`. `git-branch-status` is about 5x faster than `vcs_info` on M1 MacBook Pro (2021).\n\n```sh\n❯ ./scripts/bench.sh\nSetup vcs_info...done!\nSetup git-branch-status...done!\n\nRun 'vcs_info; echo $vcs_info_msg_0_' 100 times\n....................................................................................................done!\nElapsed time: 2029ms\n\nRun './target/release/git-branch-status --mode zsh' 100 times\n....................................................................................................done!\nElapsed time: 404ms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiomik%2Fgit-branch-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakiomik%2Fgit-branch-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiomik%2Fgit-branch-status/lists"}