{"id":34191365,"url":"https://github.com/eendroroy/gitter","last_synced_at":"2026-03-12T19:35:32.948Z","repository":{"id":325764593,"uuid":"1102300313","full_name":"eendroroy/gitter","owner":"eendroroy","description":"Run git or arbitrary command in multiple git repositories with filters in current directory","archived":false,"fork":false,"pushed_at":"2026-01-25T06:41:40.000Z","size":287,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-25T21:24:08.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eendroroy.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":"2025-11-23T07:37:53.000Z","updated_at":"2026-01-20T11:15:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eendroroy/gitter","commit_stats":null,"previous_names":["eendroroy/gitter"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/eendroroy/gitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Fgitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Fgitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Fgitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Fgitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eendroroy","download_url":"https://codeload.github.com/eendroroy/gitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Fgitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30440013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":"2025-12-15T16:01:52.113Z","updated_at":"2026-03-12T19:35:32.938Z","avatar_url":"https://github.com/eendroroy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n  Copyright (C) Indrajit Roy \u003ceendroroy@gmail.com\u003e\n\n  SPDX-License-Identifier: AGPL-3.0-or-later\n\n  This program is free software: you can redistribute it and/or modify\n  it under the terms of the GNU Affero General Public License as\n  published by the Free Software Foundation, either version 3 of the\n  License, or (at your option) any later version.\n--\u003e\n\n# gitter\n\nRun git or arbitrary command in multiple git repositories with filters in current directory\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/eendroroy/gitter.git ~/.gitter\n```\n\nAdd below line to your shell configuration file:\n\n```shell\nexport PATH=\"$HOME/.gitter/bin:$PATH\"\n\nexport fpath=(\"${fpath[@]}\" \"${HOME}/.gitter/completion/zsh\") # ZSH Completion\nsource ~/.gitter/completion/bash/gitter.bash # Bash Completion\nsource ~/.gitter/completion/fish/gitter.fish # Fish Completion\n```\n\n## Usage\n\n```shell\ngitter  [--\u003coption\u003e ...] [command [-- \u003cargs ...\u003e]]\n```\n\nRun `gitter help` for details.\n\n## Configuration\n\n```shell\n# Configuration variables for gitter\nexport GITTER_SUCCESS_SYMBOL=\" ░\"      # Symbol to indicate success status\nexport GITTER___ERROR_SYMBOL=\" ░\"      # Symbol to indicate error status\nexport GITTER_PRIMARY_SYMBOL=\" ━\"      # Symbol to indicate primary information\n\n# Arg defaults\nexport GITTER_MAX_DEPTH=2              # Maximum directory depth to search for git repositories (default: 2)\nexport GITTER_NO_COLOR=false           # Enable colored output by default\nexport GITTER_ASK_CONFIRMATION=false   # Proceed without asking for confirmation by default\nexport GITTER_CONTINUE_ON_ERROR=false  # ASk to continue on error by default\n\n# Color configuration\nexport GITTER_C____ERROR='\\e[38;5;9m'   # Error\nexport GITTER_C__SUCCESS='\\e[38;5;2m'   # Success\nexport GITTER_C_____REPO='\\e[35m'       # Repository name\nexport GITTER_C_____PATH='\\e[2;35m'     # Path\nexport GITTER_C______DIM='\\e[2;38;5;3m' # Dim text\nexport GITTER_C__HEADING='\\e[1;37m'     # Heading\nexport GITTER_C__COMMAND='\\e[32m'       # Command\nexport GITTER_C______ARG='\\e[33m'       # Argument\nexport GITTER_C___OPTION='\\e[36m'       # Option\nexport GITTER_C____VALUE='\\e[2;35;1;3m' # Value\n\n# Status colors\nexport GITTER_C___BRANCH='\\e[32m'       # Branch\nexport GITTER_C___COMMIT='\\e[2;35;1;3m' # Commit\nexport GITTER_C__COMMITS='\\e[2;35;1;3m' # Commit count\nexport GITTER_C_TIME_REL='\\e[33m'       # Relative time\nexport GITTER_C_TIME_ABS='\\e[33m'       # Absolute time\nexport GITTER_C_AUTHOR_E='\\e[36m'       # Author email\nexport GITTER_C_AUTHOR_N='\\e[36m'       # Author name\n```\n\n## Repository status patterns\n\nWhen running git commands, gitter will display the repository status based on the configured patterns.\n\n\n#### Examples\n- To customize the repository status pattern for `gitter list` command:\n\n```shell\ngitter list --status \" on |[branch]| #|[commit:7]|(commits: |[commit:c]|) by |[author:e]| at |[time:d]\"\n```\n\n- There are few predefined patterns are available as shortcuts:\n\n```shell\ngitter list [--status default]      # \" |[branch]| |[author:n]| |[time:r]\"\ngitter list  --status branch        # \" on |[branch]\"\ngitter list  --status updated       # \" on |[branch]| |[time:r]\"\ngitter list  --status updated-at    # \" on |[branch]| |[commit:8]| at |[time:d]\"\ngitter list  --status updated-by    # \" on |[branch]| |[commit:8]| by |[author:e]| |[time:r]\"\ngitter list  --status updated-by-at # \" on |[branch]| |[commit:8]| by |[author:e]| at |[time:d]\"\ngitter list  --status commit-count  # \" (|[commit:c]| commits)| on |[branch]\"\n```\n\nThe default patterns are as follows:\n\n```shell\n# gitter list | gitter ls\nexport GITTER_REPO_STATUS=\" on |[branch]| |[commit:8]| by |[author:e]| |[time:r]\" # default pattern\n```\n\n#### Available placeholders for repository status patterns\n\n- `[branch]    ` : Current git branch name\n- `[commit:a]  ` : Abbreviated (8) current git commit hash\n- `[commit:f]  ` : Full current git commit hash\n- `[commit:\u003cn\u003e]` : Current git commit hash abbreviated to `\u003cn\u003e` characters. e.g., `[commit:10]`\n- `[time:r]    ` : Relative time of the current git commit (e.g., \"2 days ago\")\n- `[time:d]    ` : Date and time of the current git commit (e.g., \"2024-01-01 12:00:00\")\n- `[author:e]  ` : Current git commit author email\n- `[author:n]  ` : Current git commit author name\n\n## Filters\n\nFilters allow you to include or exclude repositories based on specific criteria such as path, repository name,\nor branch name. It supports bash expression evaluation format. \nFor example: *`\"( filter1 \u0026\u0026 filter2 ) || ! filter3\"`*\n\n#### Filter Format\n\n`\u003cprefix\u003e\u003c:\u003e\u003cvalue\u003e`\n\n#### Prefixes\n\n- `path  ` : `[substr]`   Match for path name\n- `repo  ` : `[substr]`   Match for repository name\n- `branch` : `[substr]`   Match for current git branch\n- `remote` : `[substr]`   Match for remote name (e.g., origin)\n- `dirty ` : `[boolean]`  Match for dirty state (default: `true`. Use value `false` to match clean repositories)\n- `stale ` : `[temporal]` Match for stale repositories (supports duration format - e.g., `7d`, `12h`, `30m`)\n- `active` : `[temporal]` Match for repositories with activity in current branch (supports duration format - e.g., `7d`, `12h`, `30m`)\n- `type`   : `[full]`     Match for project type (supports exact match only - `type:\u003cproject_type\u003e`)\n\n#### `substr` Format\n\n- `+pattern+` : Matches substring anywhere in the value\n- ` pattern+` : Matches the beginning of the value\n- `+pattern ` : Matches the end of the value\n- ` pattern ` : Matches exactly the value\n\n#### 'temporal' Format:\n\n`[\u003cYears\u003ey][\u003cMonths\u003emo][\u003cWeeks\u003ew][\u003cDays\u003ed][\u003cHours\u003eh][\u003cMinutes\u003em][\u003cSeconds\u003es]`\n\n#### 'temporal' Unit Conversion Table:\n\n```\nUnits | mo |  w |   d |     h |       m |         s\n------|----|----| ----|-------|---------|-----------\n 1  y | 12 | 52 | 365 | 8,760 | 525,600 | 31,536,000\n 1 mo |    |  4 |  30 |   720 |  43,200 |  25,92,000\n 1  w |    |    |   7 |   168 |  10,080 |    604,800\n 1  d |    |    |     |    24 |   1,440 |     86,400\n 1  h |    |    |     |       |      60 |      3,600\n 1  m |    |    |     |       |         |         60\n```\n\n#### Project Types:\n\n`gitter help filter` command can be used to list all supported project types.\n\n#### Examples\n\n- `-f \"repo:+lib+\"                ` : Includes repositories with \"lib\" anywhere in the repository name.\n- `-f \"path:src+\"                 ` : Includes repositories with paths starting with \"src\".\n- `-f \"branch:feature/+\"          ` : Includes repositories currently on branches starting with \"feature/\".\n- `-f \"branch:main\"               ` : Includes repositories currently on the \"main\" branch.\n- `-f \"! repo:+test+\"             ` : Excludes repositories with \"test\" anywhere in the repository name.\n- `-f \"path:+utils+ || branch:dev\"` : Includes repositories with \"utils\" in the path or currently on the \"dev\" branch.\n- `-f \"dirty \u0026\u0026 stale:7d\"         ` : Filter repositories which are dirty and not updated in last 7 days\n\n## .gitterignore\n\nYou can create a `.gitterignore` file in the current directory to specify repositories that should be ignored by\n`gitter`. Each line in the file should contain a pattern to match repository names or paths.\nLines starting with `#` are treated as comments and ignored.\n\n#### Patterns\n\n- `relative/path/to/directory` : Ignore directory at exact relative path `relative/path/to/directory`\n- `*/directory_name          ` : Ignore directories under any parent directory named `directory_name`\n- `directory_name/*          ` : Ignore directories directly under the top-level directory named `directory_name`\n\n## Argument expansion\n\nWithin `exec` and `git` commands, you can use the following expanders in arguments:\n\n- `{_repo_}      ` : Name of the current git repository\n- `{_path:r_}    ` : Relative path of the current working directory from where gitter was invoked\n- `{_path:a_}    ` : Absolute path of the current working directory\n- `{_branch_}    ` : Current git branch name\n- `{_commit:f_}  ` : Current git commit hash\n- `{_commit:\u003cn\u003e_}` : Current git commit hash abbreviated to `\u003cn\u003e` characters. i.e. `{_commit:8_}`\n- `{_time:r_}    ` : Relative time of the current git commit (e.g., \"2 days ago\")\n- `{_time:d_}    ` : Date and time of the current git commit (e.g., \"2024-01-01 12:00:00\")\n- `{_author:e_}  ` : Current git commit author email\n- `{_author:n_}  ` : Current git commit author name\n\n## License\n\nThe project is available as open source under the terms of\nthe [AGPL3 License](https://www.fsf.org/licensing/licenses/agpl.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feendroroy%2Fgitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feendroroy%2Fgitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feendroroy%2Fgitter/lists"}