From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1323 invoked by alias); 2 May 2010 09:05:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27942 Received: (qmail 13952 invoked from network); 2 May 2010 09:05:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-workers@zsh.org Subject: Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD. In-Reply-To: <20100501203213.GA27571@ruderich.org> (Simon Ruderich's message of "Sat, 1 May 2010 22:32:13 +0200") References: <20100322012544.GA6014@ruderich.org> <20100329000715.GA25919@ruderich.org> <20100501082845.GA5704@ruderich.org> <87tyqrx5lj.fsf@ft.bewatermyfriend.org> <20100501121201.GA15260@ruderich.org> <87ljc3x1dc.fsf@ft.bewatermyfriend.org> <20100501203213.GA27571@ruderich.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Sun, 02 May 2010 11:04:01 +0200 Message-ID: <87d3xewu7y.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: 430444 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=C2=B9? >> >> Regards, Frank >> >> =C2=B9 > > 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=3D"$(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