zsh-workers
 help / color / mirror / code / Atom feed
From: Valni <ttemplate223@gmail.com>
To: zsh-workers@zsh.org
Subject: Call git directly to bypass possible functions under the same name
Date: Thu, 4 Feb 2016 22:00:30 +0100	[thread overview]
Message-ID: <56B3BBEE.3030309@gmail.com> (raw)

Hopefully I have reached the right mailing list and posted a valid
question/issue.

---

I stumbled upon an issue today when creating a function which adds SSH
keys to an agent on demand. This function should (and does, in `zsh -f`)
only be called when git/ssh is used. The function also has the same name
as the program.

However, I use a zsh framework which depends on vcs_info, which causes
some issue (https://github.com/Eriner/zim/issues/30).

When git is called from vcs_info, it does not appear to call it
directly, so any definitions of it, such as a function, will take priority.

This results in the function (seen in the first post of the GitHub
issue) being called when any (or none at all) command is called, because
the framework checks if the current directory is used by git using vcs_info.

Could vcs_info be changed so that it calls git directly? Thus far, this
appears to be the cause of the issue.

Thanks in advance.


             reply	other threads:[~2016-02-04 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04 21:00 Valni [this message]
2016-02-04 21:19 ` Frank Terbeck

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=56B3BBEE.3030309@gmail.com \
    --to=ttemplate223@gmail.com \
    --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).