Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 5/9] vcs_info quilt: fix standalone detection
- X-seq: zsh-workers 33148
- From: Marc Finet <m.dreadlock@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 5/9] vcs_info quilt: fix standalone detection
- Date: Fri, 12 Sep 2014 23:30:39 +0200
- Cc: Marc Finet <m.dreadlock@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R5C5gzxUs0ojEWn2S9dm2iGOSZAH0Z2DRbALpSSgvjw=; b=RqoherCuqewst0BkDxjxHCRui70I7OGI8ciWFsSLYlpwMRjyMACF7rmnwlt/i8EriN kbK2eUv0ua4ZNpW90a29GuOKHiqtHiUf1Tn/tSwNQqIvbqQ9mZUqqgCoegCClZQ7naG6 vFcXl5cATODFaKfTAmppiPrEQT/X6zc83+Ok/fPqXykYpZhxyGjkswdBICMmBVH7IJvC dzZGvstw/vTK2rWPCOdolfqWHE3gJcpBFKtH5SZut97mxlpjLxn+HjTWeCqhYTNqC/NA X5CxyMVK//6HxxXL4eBbejk9vHy5W8/iP7NHaOlGJGvXuqS339pg/n5xO0B7rAFTlkRc f1zQ==
- In-reply-to: <1410557443-24178-1-git-send-email-m.dreadlock@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1410557443-24178-1-git-send-email-m.dreadlock@gmail.com>
Since VCS_INFO_bydir_detect always uses the
vcs_comm[detect_need_file], it should be cleared when querying
it without file.
---
Functions/VCS_Info/VCS_INFO_quilt | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index 7001eca..db15dda 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -70,13 +70,11 @@ function VCS_INFO_quilt-dirfind() {
olddir=${vcs_comm[basedir]}
vcs_comm[basedir]=''
- if [[ -n "${file}" ]]; then
- oldfile=${vcs_comm[detect_need_file]}
- vcs_comm[detect_need_file]=${file}
- fi
+ oldfile=${vcs_comm[detect_need_file]}
+ vcs_comm[detect_need_file]=${file}
VCS_INFO_bydir_detect ${dir}
ret=$?
- [[ -n "${file}" ]] && vcs_comm[detect_need_file]=${oldfile}
+ vcs_comm[detect_need_file]=${oldfile}
printf '%s' ${vcs_comm[basedir]}
vcs_comm[basedir]="${olddir}"
return ${ret}
--
2.1.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author