https://github.com/knisterpeter/gerrit-publish-bash-completaion
https://github.com/knisterpeter/gerrit-publish-bash-completaion
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/knisterpeter/gerrit-publish-bash-completaion
- Owner: KnisterPeter
- License: mit
- Created: 2016-08-03T11:34:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T11:58:26.000Z (almost 10 years ago)
- Last Synced: 2025-01-20T18:25:26.241Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gerrit publish bash completion script
This bash completion script is useful for the following `git publish` alias.
It completes local branch names.
```
publish = "!f() { reviewer=""; if [ "x$2" != "x" ]; then reviewer="%r=$2"; fi; git push origin HEAD:refs/for/$1$reviewer; }; f"
```