Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 4/9] vcs_info git: set rrn before using it
- X-seq: zsh-workers 33146
- From: Marc Finet <m.dreadlock@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 4/9] vcs_info git: set rrn before using it
- Date: Fri, 12 Sep 2014 23:30:38 +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=eoJePBpYodVj1HTy4dqboR7tTWhvseWmBzrzYzmO52E=; b=zGLGC4taZnnwTzaTaW7KQZe1V8YSZxgHAHsITEIZmtUcoiERa9f8q9gdCtk/wEIfQz IqIzHYLJHePKl76W4bYvyn/cU+aobxaD8DL+DtPQEpjE+BzVh2QUsuLpwQnomMBTmIRT fkmASoX9KtmtGGwRCldxvTXZdYe3XLQYHCdO3FPrtUknOJIgckMrsygO0iHK9FiDemUI 39uxJRGV/+kbzIv/Qng3NzUoPfZ0SQsTgxrkBo2NqCVuAOVYw8/879GNMhYtkbJiISeo hRg2rwq22LNBpKgKUiNV+QHrFcw3BJhDsH+3PseAIPl25RRgup7ntKsSNWgDUjl5siIR azCA==
- 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>
This would fix setting check-for-changes or
check-for-staged-changes per repository.
---
Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 263a325..b5a38da 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -126,6 +126,8 @@ if [[ -z ${gitdir} ]] || [[ -z ${gitbranch} ]] ; then
return 1
fi
+gitbase=$( ${vcs_comm[cmd]} rev-parse --show-toplevel )
+rrn=${gitbase:t}
if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" ; then
querystaged=1
queryunstaged=1
@@ -154,8 +156,6 @@ fi
VCS_INFO_adjust
VCS_INFO_git_getaction ${gitdir}
-gitbase=$( ${vcs_comm[cmd]} rev-parse --show-toplevel )
-rrn=${gitbase:t}
local patchdir=${gitdir}/patches/${gitbranch}
if [[ -d $patchdir ]] && [[ -f $patchdir/applied ]] \
--
2.1.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author