Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
71ca3865
Unverified
Commit
71ca3865
authored
Jan 05, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(git-extras): type properly `__gitex_command_successful` calls
Closes #11430
parent
280c99da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
git-extras.plugin.zsh
plugins/git-extras/git-extras.plugin.zsh
+6
-6
No files found.
plugins/git-extras/git-extras.plugin.zsh
View file @
71ca3865
...
@@ -51,7 +51,7 @@ __gitex_remote_names() {
...
@@ -51,7 +51,7 @@ __gitex_remote_names() {
local
expl
local
expl
declare
-a
remote_names
declare
-a
remote_names
remote_names
=(
${
(f)
"
$(
_call_program remotes git remote 2>/dev/null
)
"
}
)
remote_names
=(
${
(f)
"
$(
_call_program remotes git remote 2>/dev/null
)
"
}
)
__git_command_successful
||
return
__git
ex
_command_successful
||
return
_wanted remote-names expl remote-name compadd
$*
-
$remote_names
_wanted remote-names expl remote-name compadd
$*
-
$remote_names
}
}
...
@@ -59,7 +59,7 @@ __gitex_tag_names() {
...
@@ -59,7 +59,7 @@ __gitex_tag_names() {
local
expl
local
expl
declare
-a
tag_names
declare
-a
tag_names
tag_names
=(
${${
(f)
"
$(
_call_program tags git
for
-each-ref
--format
=
'"%(refname)"'
refs/tags 2>/dev/null
)
"
}
#refs/tags/
}
)
tag_names
=(
${${
(f)
"
$(
_call_program tags git
for
-each-ref
--format
=
'"%(refname)"'
refs/tags 2>/dev/null
)
"
}
#refs/tags/
}
)
__git_command_successful
||
return
__git
ex
_command_successful
||
return
_wanted tag-names expl tag-name compadd
$*
-
$tag_names
_wanted tag-names expl tag-name compadd
$*
-
$tag_names
}
}
...
@@ -68,7 +68,7 @@ __gitex_branch_names() {
...
@@ -68,7 +68,7 @@ __gitex_branch_names() {
local
expl
local
expl
declare
-a
branch_names
declare
-a
branch_names
branch_names
=(
${${
(f)
"
$(
_call_program branchrefs git
for
-each-ref
--format
=
'"%(refname)"'
refs/heads 2>/dev/null
)
"
}
#refs/heads/
}
)
branch_names
=(
${${
(f)
"
$(
_call_program branchrefs git
for
-each-ref
--format
=
'"%(refname)"'
refs/heads 2>/dev/null
)
"
}
#refs/heads/
}
)
__git_command_successful
||
return
__git
ex
_command_successful
||
return
_wanted branch-names expl branch-name compadd
$*
-
$branch_names
_wanted branch-names expl branch-name compadd
$*
-
$branch_names
}
}
...
@@ -76,7 +76,7 @@ __gitex_specific_branch_names() {
...
@@ -76,7 +76,7 @@ __gitex_specific_branch_names() {
local
expl
local
expl
declare
-a
branch_names
declare
-a
branch_names
branch_names
=(
${${
(f)
"
$(
_call_program branchrefs git
for
-each-ref
--format
=
'"%(refname)"'
refs/heads/
"
$1
"
2>/dev/null
)
"
}
#refs/heads/
$1
/
}
)
branch_names
=(
${${
(f)
"
$(
_call_program branchrefs git
for
-each-ref
--format
=
'"%(refname)"'
refs/heads/
"
$1
"
2>/dev/null
)
"
}
#refs/heads/
$1
/
}
)
__git_command_successful
||
return
__git
ex
_command_successful
||
return
_wanted branch-names expl branch-name compadd -
$branch_names
_wanted branch-names expl branch-name compadd -
$branch_names
}
}
...
@@ -100,7 +100,7 @@ __gitex_submodule_names() {
...
@@ -100,7 +100,7 @@ __gitex_submodule_names() {
local
expl
local
expl
declare
-a
submodule_names
declare
-a
submodule_names
submodule_names
=(
${
(f)
"
$(
_call_program branchrefs git submodule status |
awk
'{print $2}'
)
"
}
)
# '
submodule_names
=(
${
(f)
"
$(
_call_program branchrefs git submodule status |
awk
'{print $2}'
)
"
}
)
# '
__git_command_successful
||
return
__git
ex
_command_successful
||
return
_wanted submodule-names expl submodule-name compadd
$*
-
$submodule_names
_wanted submodule-names expl submodule-name compadd
$*
-
$submodule_names
}
}
...
@@ -109,7 +109,7 @@ __gitex_author_names() {
...
@@ -109,7 +109,7 @@ __gitex_author_names() {
local
expl
local
expl
declare
-a
author_names
declare
-a
author_names
author_names
=(
${
(f)
"
$(
_call_program branchrefs git log
--format
=
'%aN'
|
sort
-u
)
"
}
)
author_names
=(
${
(f)
"
$(
_call_program branchrefs git log
--format
=
'%aN'
|
sort
-u
)
"
}
)
__git_command_successful
||
return
__git
ex
_command_successful
||
return
_wanted author-names expl author-name compadd
$*
-
$author_names
_wanted author-names expl author-name compadd
$*
-
$author_names
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment