mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
__git_commit_objects: do not use _guard, but only a pattern
With using `_guard` there like it's been done, the completion could not be selected, probably because of the call to `_message` therein. This changes it to use only the logic/check from `_guard` that we want here.
This commit is contained in:
parent
ed3e5f521d
commit
8f6823b710
2 changed files with 4 additions and 1 deletions
|
@ -5657,7 +5657,7 @@ __git_commit_objects () {
|
|||
declare -a commits
|
||||
|
||||
# Abort if the argument does not match a commit hash (including empty).
|
||||
_guard '[[:xdigit:]](#c,40)' || return 1
|
||||
[[ "$PREFIX$SUFFIX" == [[:xdigit:]](#c1,40) ]] || return 1
|
||||
|
||||
# Note: the after-the-colon part must be unique across the entire array;
|
||||
# see workers/34768
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue