{"id":15570831,"url":"https://github.com/keith/git-relative-status","last_synced_at":"2025-10-03T00:31:25.756Z","repository":{"id":45312486,"uuid":"145520048","full_name":"keith/git-relative-status","owner":"keith","description":"A CLI for printing the status in a git repo with relative file paths","archived":false,"fork":false,"pushed_at":"2021-12-22T04:32:19.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-16T22:43:18.629Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keith.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}},"created_at":"2018-08-21T06:53:57.000Z","updated_at":"2024-03-30T08:05:15.000Z","dependencies_parsed_at":"2022-09-01T20:34:17.875Z","dependency_job_id":null,"html_url":"https://github.com/keith/git-relative-status","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fgit-relative-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fgit-relative-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fgit-relative-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fgit-relative-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keith","download_url":"https://codeload.github.com/keith/git-relative-status/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235053753,"owners_count":18928440,"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-02T17:46:02.645Z","updated_at":"2025-10-03T00:31:20.474Z","avatar_url":"https://github.com/keith.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-relative-status\n\n`git-relative-status` is meant to provide a parseable output format for\nrelative paths in a git repo. This is useful for providing a fuzzy\nfinding interface for editors or shell functions.\n\n# Installation\n\n[Homebrew](https://brew.sh):\n\n```sh\nbrew install keith/formulae/git-relative-status\n```\n\nManually, after [installing rust](https://rustup.rs/):\n\n```sh\ncargo install\n```\n\nYou need to have `source ~/.cargo/env` somewhere in your shell\nconfiguration, then `git-relative-status` will be available from\n`~/.cargo/bin/git-relative-status`.\n\n# Examples\n\n```sh\n$ pwd\n/foo/bar/repo\n$ echo \"hi\" \u003e\u003e README.md\n$ git relative-status\nREADME.md\n$ mkdir foo; cd foo\n$ git relative-status\n../README.md\n```\n\n## Why not use `git status`\n\nIf you want a parseable format, you should be using\n[`--porcelain`](https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain)\nto get a stable format (although realistically it probably won't change\nmuch in this case). Unfortunately this is [not\nrelative](https://git-scm.com/docs/git-status#_porcelain_format_version_1).\nThis makes it difficult to fuzzy find files from a nested directory in a\nrepo.\n\n## Why rust\n\n```sh\n$ time git-relative-status # Rust\n0.07s user 0.24s system 166% cpu 0.189 total\n$ time git-relative-status.py # Python\n0.14s user 0.30s system 124% cpu 0.358 total\n```\n\n### TODO\n\n- This currently doesn't output the specific status, assuming consumers\n  won't care about it for the original use case. This should also be an\n  option.\n- File renames will still show in the format `from -\u003e to`. In this case\n  it should only print the `to`.\n- Verify the behavior with submodules. I have no idea if this will work\n  with submodules at all. Specifically:\n  - If you're in a submodule directory, where will the paths be relative\n    to\n  - If you're in a directory containing a nested submodule, I assume\n    just the submodule will be available. It would be nice to show any\n    dirty files from the submodule too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fgit-relative-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeith%2Fgit-relative-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fgit-relative-status/lists"}