Browse Source

versionstamp: Better $ZSH_HIGHLIGHT_REVISION reporting when running from git.

pull/242/merge
Daniel Shahaf 8 years ago
parent
commit
84734ba950
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      zsh-syntax-highlighting.zsh

+ 1
- 1
zsh-syntax-highlighting.zsh View File

@ -36,7 +36,7 @@ if [[ -o function_argzero ]]; then
# When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION # When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION
# would be set to '$Format:%H$' literally. That's an invalid value, and obtaining # would be set to '$Format:%H$' literally. That's an invalid value, and obtaining
# the valid value (via `git rev-parse HEAD`, as Makefile does) might be costly, so: # the valid value (via `git rev-parse HEAD`, as Makefile does) might be costly, so:
unset ZSH_HIGHLIGHT_REVISION
ZSH_HIGHLIGHT_REVISION=HEAD
fi fi
else else
# $0 is unreliable, so the call to _zsh_highlight_load_highlighters will fail. # $0 is unreliable, so the call to _zsh_highlight_load_highlighters will fail.

Loading…
Cancel
Save