Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] _git: Also complete FETCH_HEAD, ORIG_HEAD and MERGE_HEAD.



On Sun, Mar 21, 2010 at 20:48, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:

> + Âsymbolic_heads=()
> + Âfor head in HEAD ORIG_HEAD FETCH_HEAD MERGE_HEAD ; do
> + Â Âgit rev-parse $head &>/dev/null && symbolic_heads+=( $head )
> + Âdone

Thatâs a lot of forking to make a simple check.  Is there no better
way?  Do we actually have to filter the heads?



Messages sorted by: Reverse Date, Date, Thread, Author