e2b855341bfd587590734da860d75ead7788810f
Author Adam Johnson <me@adamj.eu> Committer GitHub <noreply@github.com> Date 2023-09-26 07:27 UTC
Message feat(git): add tag aliases `gt` and `gta` (#11910)
Co-authored-by: hasecilu <hasecilu@protonmail.com>
Co-authored-by: Rik <gitaarik@posteo.net>
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diff 1 diff --git a/plugins/git/README.md b/plugins/git/README.md
2 index e7c32e97f7f9e1970aa3f58f8d6762385c3ed28b..5a732ed63ea48421b82a2fe4ee76a119c4c13496 100644
3 --- a/plugins/git/README.md
4 +++ b/plugins/git/README.md
5 @@ -197,6 +197,8 @@ plugins=(... git)
6 | `gswc` | `git switch -c` |
7 | `gswd` | `git switch $(git_develop_branch)` |
8 | `gswm` | `git switch $(git_main_branch)` |
9 +| `gt` | `git tag` |
10 +| `gta` | `git tag --annotate` |
11 | `gts` | `git tag -s` |
12 | `gtv` | `git tag \| sort -V` |
13 | `gignore` | `git update-index --assume-unchanged` |
14 diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
15 index 01eab682edf0e59ae2d35d842d0ae2ed3da6aac3..527093c281adb3078c4a1828a91fd052a7341bdc 100644
16 --- a/plugins/git/git.plugin.zsh
17 +++ b/plugins/git/git.plugin.zsh
18 @@ -345,6 +345,8 @@ alias gsw='git switch'
19 alias gswc='git switch --create'
20 alias gswd='git switch $(git_develop_branch)'
21 alias gswm='git switch $(git_main_branch)'
22 +alias gt='git tag'
23 +alias gta='git tag --annotate'
24 alias gts='git tag --sign'
25 alias gtv='git tag | sort -V'
26 alias gignore='git update-index --assume-unchanged'