Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: CVS completion for 'forced commit'
- X-seq: zsh-users 12419
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "N.J. Mann" <njm@xxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: CVS completion for 'forced commit'
- Date: Fri, 11 Jan 2008 08:53:55 -0800
- In-reply-to: <20080111155800.GA12171@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080111155800.GA12171@xxxxxxxxxxxxxxxxxx>
On Jan 11, 3:58pm, N.J. Mann wrote:
}
} So far the one thing that has really rattled my chain is that completion
} does not work for `cvs commit -f`. I have only very briefly looked at
} the documentation for completion - ENOTIME - so the patch I am about to
} suggest is probably wrong. :-) However, it does appear to work.
The _cvs_commit_arg function looks OK to me but there's a stray reference
to "(( $+functions[_cvs_rtag] )) ||" in the diff, it looks like.
} +===+===+===+===+===+===+===+
}
} --- zsh/4.3.4/functions/Completion/Unix/_cvs.orig 2007-10-06 07:10:48.000000000 +0100
} +++ zsh/4.3.4/functions/Completion/Unix/_cvs 2008-01-11 15:37:52.000000000 +0000
} @@ -170,9 +170,19 @@
} '(-F)-m+[message]:message:_cvs_m' \
} '(-m)-F+[message file]:log message file:_files' \
} '-r+[specify revision]:tag:_cvs_revisions' \
} - '*:modified file:_cvs_files_modified'
} + '*:modified file:_cvs_commit_arg'
} }
}
} +(( $+functions[_cvs_commit_arg] )) ||
} +_cvs_commit_arg() {
} + if (( $+opt_args[-f] )); then
} + _cvs_files
} + else
} + _cvs_files_modified
} + fi
} +}
} +
} +(( $+functions[_cvs_rtag] )) ||
} (( $+functions[_cvs_diff] )) ||
} _cvs_diff() {
} local of ofwuc ouc oss ofwy ofwg ofwl
}
} +===+===+===+===+===+===+===+
Messages sorted by:
Reverse Date,
Date,
Thread,
Author