mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
49711: _subversion: _svn_status: Don't offer unversioned files
This function is used only by revert, diff, and commit, none of which can run on unversioned files (those with status '?').
This commit is contained in:
parent
441f594c9f
commit
6342512483
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2022-01-29 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 49711: Completion/Unix/Command/_subversion: _svn_status:
|
||||
Don't offer unversioned files
|
||||
|
||||
2022-01-27 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* unposted: Doc/Zsh/contrib.yo: vcs_info quilt docs: Fix
|
||||
|
|
|
@ -390,7 +390,7 @@ _svn_status() {
|
|||
local mtime="$(zstat +mtime $dir/.svn/entries)"
|
||||
|
||||
if (( ! $+_cache_svn_status[$key] || _cache_svn_mtime[$key] != mtime )); then
|
||||
_cache_svn_status[$key]="$(_call_program files svn status -N $dir)"
|
||||
_cache_svn_status[$key]="$(_call_program files svn status -q -N -- $dir)"
|
||||
_cache_svn_mtime[$key]="$mtime"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue