zsh-workers
 help / color / mirror / code / Atom feed
From: Juliano Ravasi <jravasi@google.com>
To: zsh-workers@zsh.org
Subject: PATCH: vcs_info: Fix construction of stgit_unapplied variable.
Date: Tue, 22 May 2012 18:26:19 -0300	[thread overview]
Message-ID: <CAMwmxx=U84DTX-HLrFqskPr5By7v=XsB7_MCcvmq54mw8nXEcg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

Hi,

stgit_unapplied variable in vcs_info hooks is currently initialized
with the wrong value.
I would like to submit this small fix.

Regards,
Juliano.

--
Juliano F. Ravasi

[-- Attachment #2: 0001-vcs_info-Fix-construction-of-stgit_unapplied-variabl.patch --]
[-- Type: application/octet-stream, Size: 1034 bytes --]

From a505d113409cc688c3b5732f226333453a693494 Mon Sep 17 00:00:00 2001
From: "Juliano F. Ravasi" <jravasi@google.com>
Date: Tue, 22 May 2012 00:39:44 -0300
Subject: [PATCH] vcs_info: Fix construction of stgit_unapplied variable.

---
 Functions/VCS_Info/Backends/VCS_INFO_get_data_git |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 01bf9f3..9364fd0 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -134,7 +134,7 @@ if [[ -d $patchdir ]] ; then
     stgit_applied=(${(f)"$(< "${patchdir}/applied")"})
     stgit_applied=( ${(Oa)stgit_applied} )
     stgit_unapplied=(${(f)"$(< "${patchdir}/unapplied")"})
-    stgit_unapplied=( ${(oa)stgit_applied} )
+    stgit_unapplied=( ${(oa)stgit_unapplied} )
 
     if VCS_INFO_hook 'gen-applied-string' "${stgit_applied[@]}"; then
         if (( ${#stgit_applied} )); then
-- 
1.7.7.3


             reply	other threads:[~2012-05-22 21:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-22 21:26 Juliano Ravasi [this message]
2012-05-23  7:46 ` Frank Terbeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMwmxx=U84DTX-HLrFqskPr5By7v=XsB7_MCcvmq54mw8nXEcg@mail.gmail.com' \
    --to=jravasi@google.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).