Skip to content

Commit 3a258cb

Browse files
authored
Type properly __gitex_command_successful calls and capitalizate github to GitHub (tj#1049)
* Type properly `__gitex_command_successful` calls * Capitalize github to GitHub
1 parent 5d7ed18 commit 3a258cb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

etc/git-extras-completion.zsh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ __gitex_remote_names() {
5151
local expl
5252
declare -a remote_names
5353
remote_names=(${(f)"$(_call_program remotes git remote 2>/dev/null)"})
54-
__git_command_successful || return
54+
__gitex_command_successful || return
5555
_wanted remote-names expl remote-name compadd $* - $remote_names
5656
}
5757

5858
__gitex_tag_names() {
5959
local expl
6060
declare -a tag_names
6161
tag_names=(${${(f)"$(_call_program tags git for-each-ref --format='"%(refname)"' refs/tags 2>/dev/null)"}#refs/tags/})
62-
__git_command_successful || return
62+
__gitex_command_successful || return
6363
_wanted tag-names expl tag-name compadd $* - $tag_names
6464
}
6565

@@ -68,15 +68,15 @@ __gitex_branch_names() {
6868
local expl
6969
declare -a branch_names
7070
branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/})
71-
__git_command_successful || return
71+
__gitex_command_successful || return
7272
_wanted branch-names expl branch-name compadd $* - $branch_names
7373
}
7474

7575
__gitex_specific_branch_names() {
7676
local expl
7777
declare -a branch_names
7878
branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads/"$1" 2>/dev/null)"}#refs/heads/$1/})
79-
__git_command_successful || return
79+
__gitex_command_successful || return
8080
_wanted branch-names expl branch-name compadd - $branch_names
8181
}
8282

@@ -88,7 +88,7 @@ __gitex_submodule_names() {
8888
local expl
8989
declare -a submodule_names
9090
submodule_names=(${(f)"$(_call_program branchrefs git submodule status | awk '{print $2}')"}) # '
91-
__git_command_successful || return
91+
__gitex_command_successful || return
9292
_wanted submodule-names expl submodule-name compadd $* - $submodule_names
9393
}
9494

@@ -97,7 +97,7 @@ __gitex_author_names() {
9797
local expl
9898
declare -a author_names
9999
author_names=(${(f)"$(_call_program branchrefs git log --format='%aN' | sort -u)"})
100-
__git_command_successful || return
100+
__gitex_command_successful || return
101101
_wanted author-names expl author-name compadd $* - $author_names
102102
}
103103

@@ -370,9 +370,9 @@ zstyle ':completion:*:*:git:*' user-commands $existing_user_commands \
370370
extras:'awesome git utilities' \
371371
feature:'create/merge feature branch' \
372372
force-clone:'overwrite local repositories with clone' \
373-
fork:'fork a repo on github' \
373+
fork:'fork a repo on GitHub' \
374374
fresh-branch:'create fresh branches' \
375-
gh-pages:'create the github pages branch' \
375+
gh-pages:'create the GitHub pages branch' \
376376
graft:'merge and destroy a given branch' \
377377
guilt:'calculate change between two revisions' \
378378
ignore-io:'get sample gitignore file' \

0 commit comments

Comments
 (0)