Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- X-seq: zsh-workers 27942
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Date: Sun, 02 May 2010 11:04:01 +0200
- In-reply-to: <20100501203213.GA27571@xxxxxxxxxxxx> (Simon Ruderich's message of "Sat, 1 May 2010 22:32:13 +0200")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <alpine.LNX.2.01.1003211540430.19615@xxxxxxxxxxx> <dbfc82861003211317t7617b83ex2be594d2d994f328@xxxxxxxxxxxxxx> <20100322012544.GA6014@xxxxxxxxxxxx> <alpine.LNX.2.01.1003212134370.19615@xxxxxxxxxxx> <dbfc82861003220227i701893e8hee459c1fd72014d1@xxxxxxxxxxxxxx> <20100329000715.GA25919@xxxxxxxxxxxx> <20100501082845.GA5704@xxxxxxxxxxxx> <87tyqrx5lj.fsf@xxxxxxxxxxxxxxxxxxxxxx> <20100501121201.GA15260@xxxxxxxxxxxx> <87ljc3x1dc.fsf@xxxxxxxxxxxxxxxxxxxxxx> <20100501203213.GA27571@xxxxxxxxxxxx>
Simon Ruderich wrote:
> On Sat, May 01, 2010 at 02:17:19PM +0200, Frank Terbeck wrote:
>>> I would prefer mine because of the speed penalty of Benjamin's
>>> patch. Checking if the file exists in .git would be another
>>> possibility.
>>
>> And that would be the one from workers-27813Â?
>>
>> Regards, Frank
>>
>> Â <http://www.zsh.org/mla/workers/2010/msg00265.html>
>
> Ah sorry. Yes, that's the one.
Committed this one. Actually checking whether the head symbols are
available at any time probably requires something like this:
gdir="$(git rev-parse --git-dir)"
[[ -f ${gdir}/ORIG_HEAD ]] && ...
[[ -f ${gdir}/FETCH_HEAD ]] && ...
...
I don't know if it's worth the additional fork.
Regards, Frank
- References:
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- From: Benjamin R. Haskell
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- From: Benjamin R. Haskell
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
- Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author