From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24395 invoked by alias); 21 Mar 2010 20:17:42 -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: 27815 Received: (qmail 27459 invoked from network); 21 Mar 2010 20:17:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VERIFIED autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.212 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=jarrht/E+Pc8zCSi3TYXptp2S05bglsEpHhbG5r51L8=; b=f/oaT6PY5sULMTHpMa2ENgIvZ7EeirUJr3hfC44BD+2Vz3RyhZeqjiAtxxLE7TvU3R QCgDHOe5qBeszT4PbNMzibNDVig7C4UezI4ce1CKgBwZvaJ5OKWzLscsNVCS8jDluk7V WpJGeW0/A0KXKqfkMG24kLa464vMNFsfBG870= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=t0PjWoYkyxeQGRqMBt2nsQ+5wC+/HTFDR0lmezBuGskODUL6KhCHcPwRWZgRAhcXkM GE5bbbKBmyiQFoXs+3EC25AhwiDNP8f1SWCrUTlWRZvzzyTCzoaRjpsuUv4RWvmvpaeQ z6gpHRcR+ephZ3paAYop0HJ8o9dAQTmkBnwZk= MIME-Version: 1.0 Sender: nikolai.weibull@gmail.com In-Reply-To: References: <20100321172336.GA4151@ruderich.org> Date: Sun, 21 Mar 2010 21:17:25 +0100 X-Google-Sender-Auth: 7b9b0a8676e32464 Message-ID: Subject: Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD. From: Nikolai Weibull To: "Benjamin R. Haskell" Cc: Zsh Workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Mar 21, 2010 at 20:48, Benjamin R. Haskell wrote: > + =C2=A0symbolic_heads=3D() > + =C2=A0for head in HEAD ORIG_HEAD FETCH_HEAD MERGE_HEAD ; do > + =C2=A0 =C2=A0git rev-parse $head &>/dev/null && symbolic_heads+=3D( $he= ad ) > + =C2=A0done That=E2=80=99s a lot of forking to make a simple check. Is there no better way? Do we actually have to filter the heads?