help / color / Atom feed
* vcs_info: unreadable executable directories don't flush $vcs_info_msg_N_
@ 2020-06-17  8:47 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2020-06-17  8:47 UTC (permalink / raw)
  To: zsh-workers

$ zsh -f
% autoload vcs_info
% git init foo
% mkdir -m117 bar
% cd foo
% autoload vcs_info; precmd() { vcs_info; typeset -pm 'vcs_info_msg_*_' }
typeset -g vcs_info_msg_0_=' (git)-[master]-'
typeset -g vcs_info_msg_1_=''
% cd ../bar
typeset -g vcs_info_msg_0_=' (git)-[master]-'
typeset -g vcs_info_msg_1_=''

I would have expected vcs_info_msg_0_ to be empty or unset after the
last cd command.  The current behaviour amounts to displaying wrong


Preliminary analysis.  vcs_info has this code at the very top:

% < Functions/VCS_Info/vcs_info nl -ba | vipe
    50	vcs_info () {
    51	    emulate -L zsh
    52	    setopt extendedglob NO_warn_create_global
    54	    [[ -r . ]] || return 0

I'm guessing VCS_INFO_set should be called before returning.

It's on my list but not near the top; feel free to beat me to it.



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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17  8:47 vcs_info: unreadable executable directories don't flush $vcs_info_msg_N_ Daniel Shahaf


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git