Skip to content

Commit 54199b8

Browse files
authored
Merge pull request #841 from sgleizes/bugfix/git-release-zsh-completion
Fix missing newline escapes in git-release zsh completion
2 parents 4eb4e7f + edc4814 commit 54199b8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

etc/git-extras-completion.zsh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,15 @@ _git-guilt() {
335335
}
336336

337337
_git-ignore() {
338-
_arguments -C \
338+
_arguments -C \
339339
'(--local -l)'{--local,-l}'[show local gitignore]' \
340340
'(--global -g)'{--global,-g}'[show global gitignore]' \
341341
'(--private -p)'{--private,-p}'[show repo gitignore]'
342342
}
343343

344344

345345
_git-ignore() {
346-
_arguments -C \
346+
_arguments -C \
347347
'(--append -a)'{--append,-a}'[append .gitignore]' \
348348
'(--replace -r)'{--replace,-r}'[replace .gitignore]' \
349349
'(--list-in-table -l)'{--list-in-table,-l}'[print available types in table format]' \
@@ -410,7 +410,7 @@ _git-squash() {
410410
}
411411

412412
_git-stamp() {
413-
_arguments -C \
413+
_arguments -C \
414414
'(--replace -r)'{--replace,-r}'[replace stamps with same id]'
415415
}
416416

@@ -435,18 +435,18 @@ _git-summary() {
435435

436436
_git-release() {
437437
_arguments -C \
438-
'-c[Generates/populates the changelog with all commit message since the last tag.]'
439-
'-r[The "remote" repository that is destination of a push operation.]'
440-
'-m[use the custom commit information instead of the default message.]'
441-
'-s[Create a signed and annotated tag.]'
442-
'-u[Create a tag, annotated and signed with the given key.]'
443-
'--semver[If the latest tag in your repo matches the semver format requirement, you could increase part of it as the new release tag.]'
444-
'--no-empty-commit[Avoid creating empty commit if nothing could be committed.]'
438+
'-c[Generates/populates the changelog with all commit message since the last tag.]' \
439+
'-r[The "remote" repository that is destination of a push operation.]' \
440+
'-m[use the custom commit information instead of the default message.]' \
441+
'-s[Create a signed and annotated tag.]' \
442+
'-u[Create a tag, annotated and signed with the given key.]' \
443+
'--semver[If the latest tag in your repo matches the semver format requirement, you could increase part of it as the new release tag.]' \
444+
'--no-empty-commit[Avoid creating empty commit if nothing could be committed.]' \
445445
'--[The arguments listed after "--" separator will be passed to pre/post-release hook.]'
446446
}
447447

448448
_git-undo(){
449-
_arguments -C \
449+
_arguments -C \
450450
'(--soft -s)'{--soft,-s}'[only rolls back the commit but changes remain un-staged]' \
451451
'(--hard -h)'{--hard,-h}'[wipes your commit(s)]'
452452
}

0 commit comments

Comments
 (0)