From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.
Date: Sun, 02 May 2010 11:04:01 +0200 [thread overview]
Message-ID: <87d3xewu7y.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <20100501203213.GA27571@ruderich.org> (Simon Ruderich's message of "Sat, 1 May 2010 22:32:13 +0200")
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
next prev parent reply other threads:[~2010-05-02 9:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-21 17:23 Simon Ruderich
2010-03-21 19:48 ` Benjamin R. Haskell
2010-03-21 20:17 ` Nikolai Weibull
2010-03-22 1:25 ` Simon Ruderich
2010-03-22 2:30 ` Benjamin R. Haskell
2010-03-22 9:27 ` Nikolai Weibull
2010-03-29 0:07 ` Simon Ruderich
2010-05-01 8:28 ` Simon Ruderich
2010-05-01 10:46 ` Frank Terbeck
2010-05-01 12:12 ` Simon Ruderich
2010-05-01 12:17 ` Frank Terbeck
2010-05-01 20:32 ` Simon Ruderich
2010-05-02 9:04 ` Frank Terbeck [this message]
2010-05-03 14:51 ` Benjamin R. Haskell
2010-03-29 13:56 ` Benjamin R. Haskell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d3xewu7y.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).