Mercurial > hg
changeset 19029:b5ca14163742
zsh_completion: complete all files for `commit/backout --logfile`
Up until now commit/backout `--logfile` option was completed only with
*.txt-files. This requirement is a bit too strong (and is nowhere to be stated)
so it's better to complete with all files.
Stolen from zsh.git repo, c5fce37b changeset by Oliver Kiddle.
author | Nikolaj Sjujskij <sterkrig@myopera.com> |
---|---|
date | Wed, 17 Apr 2013 21:06:48 +0400 |
parents | b512934988d4 |
children | 48d6f436363e |
files | contrib/zsh_completion |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/zsh_completion Tue Apr 16 19:20:23 2013 +0200 +++ b/contrib/zsh_completion Wed Apr 17 21:06:48 2013 +0400 @@ -497,7 +497,7 @@ '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \ '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \ '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \ - '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt' + '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files' } _hg_cmd_bisect() { @@ -565,7 +565,7 @@ _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \ '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \ - '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt' \ + '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files' \ '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \ '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \ '--amend[amend the parent of the working dir]' \