diff options
| author | Daniel Hahler <git@thequod.de> | 2015-05-19 08:25:38 +0200 |
|---|---|---|
| committer | Daniel Hahler <git@thequod.de> | 2015-05-19 08:50:42 +0200 |
| commit | 8f6823b710dc69f2fad5d1a0158b3ba8b74840e3 (patch) | |
| tree | 9e155735545d1a725d353118d85bc1b47fbc9f19 /Completion/Unix/Command/_git | |
| parent | Completion/Unix/Command/_git: remove -2 with __git_recent_commits (diff) | |
| download | zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.tar zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.tar.gz zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.tar.bz2 zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.tar.lz zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.tar.xz zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.tar.zst zsh-8f6823b710dc69f2fad5d1a0158b3ba8b74840e3.zip | |
__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.
Diffstat (limited to 'Completion/Unix/Command/_git')
| -rw-r--r-- | Completion/Unix/Command/_git | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index a0ec3434a..fb9cae1b6 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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 |
