d7909292cbdf9fff4c18e013176b6da01ec0ae16 blob 789 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| | ## vim:ft=zsh
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.
setopt localoptions NO_shwordsplit
local dirname=$1
local basedir="." realbasedir file
realbasedir="${basedir:A}"
while [[ ${realbasedir} != '/' ]]; do
[[ -r ${realbasedir} ]] || return 1
if [[ -n ${vcs_comm[detect_need_file]} ]] ; then
[[ -d ${basedir}/${dirname} ]] && {
for file in ${(s: :)${vcs_comm[detect_need_file]}}; do
[[ -e ${basedir}/${dirname}/${file} ]] && break 2
done
}
else
[[ -d ${basedir}/${dirname} ]] && break
fi
basedir=${basedir}/..
realbasedir="${basedir:A}"
done
[[ ${realbasedir} == "/" ]] && return 1
vcs_comm[basedir]=${realbasedir}
return 0
|
debug log:
solving d790929 ...
found d790929 in https://inbox.vuxu.org/zsh-workers/CAKDHU4S8naoK9fRpPeYDY7WsnXKf0pgMKJJZHKgZcpDOZgAZxQ@mail.gmail.com/
found 70b0fb6 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 70b0fb6fa4b844bc691f7b01ec2a9b54b47f731d Functions/VCS_Info/VCS_INFO_bydir_detect
applying [1/1] https://inbox.vuxu.org/zsh-workers/CAKDHU4S8naoK9fRpPeYDY7WsnXKf0pgMKJJZHKgZcpDOZgAZxQ@mail.gmail.com/
diff --git a/Functions/VCS_Info/VCS_INFO_bydir_detect b/Functions/VCS_Info/VCS_INFO_bydir_detect
index 70b0fb6..d790929 100644
Checking patch Functions/VCS_Info/VCS_INFO_bydir_detect...
Applied patch Functions/VCS_Info/VCS_INFO_bydir_detect cleanly.
index at:
100644 d7909292cbdf9fff4c18e013176b6da01ec0ae16 Functions/VCS_Info/VCS_INFO_bydir_detect
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).