diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index f385ac3ae..f55552b4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ __git_recent_commits gets called twice for _git-checkout (for __git_revisions and __git_tree_ishs). + * 35211: Completion/Unix/Command/_git: __git_commit_objects: + do not use _guard, but only a pattern for skipping. + 2015-05-19 Daniel Shahaf <d.s@daniel.shahaf.name> * users/20222: Completion/Unix/Command/_git: users/20222: 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 |