Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 6/9] vcs_info quilt: fix unapplied detection on sub-directory
- X-seq: zsh-workers 33152
- From: Marc Finet <m.dreadlock@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 6/9] vcs_info quilt: fix unapplied detection on sub-directory
- Date: Fri, 12 Sep 2014 23:30:40 +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=RZzDNU2FwZAahpLFHVCJj4eX1y/5DyEDrmPWyiG4xzU=; b=QxNCPPStMpfxenUi3DSxjx5wOZWm9ilK2VNHwc9szblKGcRvMh2zMeX0u0shWYCjga zmMysUzKXkSbpGWJtGJisRsOehNtZ66SeZNFZ1/rsDQ89u/KgBosiQLXShMMThBMik69 5xWj3oZ5kPiLjXjqdgfxbLPc51BPWc1T07Eyrh7ataDVczbjakHSeaAwFTxGeqduse4K 5VRQGT+OBK8orTG7agXWwoii9vNdbTwtd6QVwIZ+LEcJ9UwagpwC5VyOtl0TJC3LL6ys oRGr/ZSm6sMegaH1NqpLE5IVtBMn0Lg8j9jm89gWLIwAJ18IpAGzHqGhs67MwKUbAkk+ Q6kg==
- 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>
When being in a subdirectory of a "repo" being handled with quilt,
the `quilt unapplied` command returns all the patches because
QUILT_PATCHES is an absolute path (which exists and is a dir) and
quilt considers that .pc should in current directory.
Changing quilt might be overkill and it seems that QUILT_PATCHES
should just be a name, not an absolute path.
---
Functions/VCS_Info/VCS_INFO_quilt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index db15dda..53835dd 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -134,7 +134,7 @@ function VCS_INFO_quilt() {
# This zstyle call needs to be moved further up if `quilt' needs
# to be run in more places than this one.
zstyle -s "${context}" quiltcommand quiltcommand || quiltcommand='quilt'
- unapplied=( ${(f)"$(QUILT_PATCHES=$patches $quiltcommand --quiltrc /dev/null unapplied 2> /dev/null)"} )
+ unapplied=( ${(f)"$(QUILT_PATCHES=$(basename $patches) $quiltcommand --quiltrc /dev/null unapplied 2> /dev/null)"} )
unapplied=( ${unapplied:#} )
else
unapplied=()
--
2.1.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author