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

PATCH: fix two hardcoded invocations of "git"



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



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