mirror of
https://github.com/zsh-users/zsh
synced 2024-10-01 21:54:34 +00:00
Nikolai Weibull: 23888: complete branch names and cached files after git log.
This commit is contained in:
parent
44b2e3e2b2
commit
ea7809d5a7
|
@ -1,5 +1,8 @@
|
|||
2007-10-01 Clint Adams <clint@zsh.org>
|
||||
|
||||
* Nikolai Weibull: 23888: Completion/Unix/Command/_git: complete
|
||||
branch names and cached files after git log.
|
||||
|
||||
* Nikolai Weibull: 23879: Completion/Unix/Command/_git: complete
|
||||
only cached files after git log.
|
||||
|
||||
|
@ -219,6 +222,9 @@
|
|||
* 23784: Src/utils.c: Use $'\...' quoting for unparseable and
|
||||
unprintable characters when doing backslash quoting.
|
||||
|
||||
2007-08-19 Clint Adams <clint@zsh.org>
|
||||
|
||||
* R.Ramkumar: 23783: Completion/Zsh/Command/_command,
|
||||
2007-08-19 Clint Adams <clint@zsh.org>
|
||||
|
||||
* R.Ramkumar: 23783: Completion/Zsh/Command/_command,
|
||||
|
@ -7164,9 +7170,6 @@
|
|||
|
||||
* unposted: Functions/Misc/zrecompile: change "mv" to "mv -f"
|
||||
when backing up .zwc files, because zcompile creates the files
|
||||
read-only. See thread ending at users/7269.
|
||||
|
||||
2004-03-30 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 19708: Completion/compaudit: change getent() function to
|
||||
handle two arguments
|
||||
|
|
|
@ -1702,11 +1702,22 @@ _git-grep () {
|
|||
|
||||
(( $+functions[_git-log] )) ||
|
||||
_git-log () {
|
||||
local curcontext=$curcontext state line
|
||||
declare -A opt_args
|
||||
|
||||
__git_setup_revision_arguments
|
||||
|
||||
_arguments -S \
|
||||
$revision_arguments \
|
||||
'*:file:__git_cached_files' && ret=0
|
||||
'*:file-or-branch:->files' && ret=0
|
||||
|
||||
case $state in
|
||||
(files)
|
||||
_alternative \
|
||||
'files:index file:__git_cached_files' \
|
||||
'branches:branch:__git_branch_names' && ret=0
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# TODO: repository needs fixing
|
||||
|
|
Loading…
Reference in a new issue