mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
28093, based on Michel Lespinasse: 28090: Fix a problem with `check-for-changes' and freshly initialised repositories.
This commit is contained in:
parent
76aef28b31
commit
9b2334cf55
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-07-19 Frank Terbeck <ft@bewatermyfriend.org>
|
||||
|
||||
* 28093, based on Michel Lespinasse: 28090:
|
||||
Functions/VCS_Info/Backends/VCS_INFO_get_data_git: Fix a problem
|
||||
with `check-for-changes' and freshly initialised repositories.
|
||||
|
||||
2010-07-15 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 28073: Src/exec.c, Src/init.c, Src/utils.c: allow #!
|
||||
|
@ -13379,5 +13385,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5026 $
|
||||
* $Revision: 1.5027 $
|
||||
*****************************************************
|
||||
|
|
|
@ -121,8 +121,8 @@ if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" && \
|
|||
# Default: off - these are potentially expensive on big repositories
|
||||
${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules --quiet --exit-code ||
|
||||
gitunstaged=1
|
||||
${vcs_comm[cmd]} diff-index --cached --quiet --ignore-submodules HEAD ||
|
||||
gitstaged=1
|
||||
${vcs_comm[cmd]} diff-index --cached --quiet --ignore-submodules HEAD 2> /dev/null
|
||||
(( $? && $? != 128 )) && gitstaged=1
|
||||
fi
|
||||
|
||||
VCS_INFO_adjust
|
||||
|
|
Loading…
Reference in a new issue