zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: fix two hardcoded invocations of "git"
@ 2010-07-19 19:31 Frank Terbeck
  0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2010-07-19 19:31 UTC (permalink / raw)
  To: zsh-workers

When looking at Michel's patch, I saw that the "git" command was still
hardcoded in two places in
"Functions/VCS_Info/Backends/VCS_INFO_get_data_git".


Index: Functions/VCS_Info/Backends/VCS_INFO_get_data_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/VCS_Info/Backends/VCS_INFO_get_data_git,v
retrieving revision 1.11
diff -u -r1.11 VCS_INFO_get_data_git
--- Functions/VCS_Info/Backends/VCS_INFO_get_data_git	19 Jul 2010 19:20:30 -0000	1.11
+++ Functions/VCS_Info/Backends/VCS_INFO_get_data_git	19 Jul 2010 19:29:40 -0000
@@ -116,8 +116,8 @@
 fi
 
 if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" && \
-   [[ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" != 'true' ]] && \
-   git rev-parse --quiet --verify HEAD &> /dev/null ; then
+   [[ "$(${vcs_comm[cmd]} rev-parse --is-inside-git-dir 2> /dev/null)" != 'true' ]] && \
+   ${vcs_comm[cmd]} rev-parse --quiet --verify HEAD &> /dev/null ; then
     # Default: off - these are potentially expensive on big repositories
     ${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules --quiet --exit-code ||
         gitunstaged=1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-19 19:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19 19:31 PATCH: fix two hardcoded invocations of "git" Frank Terbeck

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).