Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Make git-commit complete both modified files and git-added files.
- X-seq: zsh-workers 23904
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- Subject: Re: Make git-commit complete both modified files and git-added files.
- Date: Thu, 4 Oct 2007 10:05:49 +0200
- Cc: zsh-workers <zsh-workers@xxxxxxxxxx>, "Clint Adams" <clint@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=92+/eGrrP0xszfmhnvr2mMJWIY5lRR68JexVoSz+vAI=; b=MxTRQdVvPd3yGrpFzXMBGhtOucSRDq6bIJjh0WEhrbrYdxbo4WRcthSpaDSzsimU56v4abBfq+O52y1dUP7vvCjfDBXX5Bq12xqvEh76LboONxu1Q8tpPC/Qjy/qLScZeEqr8+HqkSntOjkg/p38Z6GUfePiZuv90DRKSvBTxyM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=HffVyMdi4KeRTGb7vHexhs7bRRK2xWRU+60oTx93Q2XmU47TylhrSr8rB3bHOrzWka/LwDslkziyLKSlD0lQ8FgesQdj5b8uhkApsf66UznRkoJHCVp+2OSIvqe/3o89he2uZmVjBaqN52L/4NRcayFd+sFsNzKF7pkZL8ibc/s=
- In-reply-to: <237967ef0710031805r1124449dmc4c55e7545a81e0a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0710031805r1124449dmc4c55e7545a81e0a@xxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 10/4/07, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> +#this is for git-commit which can take files both git-added and not
> +(( $+functions[__git_changed_files] )) ||
> +__git_changed_files () {
> + gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null)
> + __git_command_successful || return
What do you need gitdir for?
> +
> + files=(${(ps:\0:)"$(_call_program files git diff-index -z
> --name-only HEAD 2>/dev/null)"})
> + __git_command_successful || return
> +
> + _wanted files expl 'index file' _multi_parts $@ - / files
> +}
> +
> (( $+functions[__git_tree_files] )) ||
> __git_tree_files () {
> local multi_parts_opts
Messages sorted by:
Reverse Date,
Date,
Thread,
Author