From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20652 invoked by alias); 19 Oct 2011 19:51:54 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16527 Received: (qmail 12194 invoked from network); 19 Oct 2011 19:51:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; bh=TcE9CBwK5y5QoeXKMY5mpMNi143lPyB6mLL8kT853Ao=; b=ABwb/4ogYJm8xEe5g3ZQwH8+G8BlWUxJBWjKrZ3GFLiaXe6Wl5isP++yJmn9oD6FgI tZ+KaJuc7wRLAp+BsZo+ki3sIzultgdKRGWSiqfHXK6jarV8JpBnwDYqQItKCJHlTJr6 vc5l7iAOxPOBaS0jmuOhbvdyRoqVomEUUhkAM= Date: Wed, 19 Oct 2011 12:51:42 -0700 From: "Suraj N. Kurapati" To: zsh-users@zsh.org Subject: [PATCH] Misc/vcs_info: self-document ahead/behind example Message-ID: <20111019125142.191065ad@gmail.com> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/jO_vrSA4=60yoRQ/Z2UWLW."; protocol="application/pgp-signature" --Sig_/jO_vrSA4=60yoRQ/Z2UWLW. Content-Type: multipart/mixed; boundary="MP_/lqqT9J3sPynsdStV8Gi8heH" --MP_/lqqT9J3sPynsdStV8Gi8heH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Attached, thanks. --=20 Row, row, row your bits, gently down the stream... --MP_/lqqT9J3sPynsdStV8Gi8heH Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-Misc-vcs_info-self-document-ahead-behind-example.patch =46rom 11571b1f506bf0eddc5932b106cee9a8650c993c Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Wed, 19 Oct 2011 12:40:39 -0700 Subject: [PATCH] Misc/vcs_info: self-document ahead/behind example --- Misc/vcs_info-examples | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/vcs_info-examples b/Misc/vcs_info-examples index ba3b2c3..21f0c12 100644 --- a/Misc/vcs_info-examples +++ b/Misc/vcs_info-examples @@ -177,8 +177,8 @@ zstyle ':vcs_info:git*+set-message:*' hooks git-untrack= ed =20 ### git: Show +N/-N when your local branch is ahead-of or behind remote HE= AD. # Make sure you have added misc to your 'formats': %m -zstyle ':vcs_info:git*+set-message:*' hooks git-st -function +vi-git-st() { +zstyle ':vcs_info:git*+set-message:*' hooks git-aheadbehind +function +vi-git-aheadbehind() { local ahead behind local -a gitstatus =20 --=20 1.7.7 --MP_/lqqT9J3sPynsdStV8Gi8heH-- --Sig_/jO_vrSA4=60yoRQ/Z2UWLW. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6fKk4ACgkQmV9O7RYnKMcq6ACfQ5uef4rB3GF0ZhVVf1gtcwIN FlAAni40khkUUoqlQH6y3WHD/w/e4uAn =VgO4 -----END PGP SIGNATURE----- --Sig_/jO_vrSA4=60yoRQ/Z2UWLW.--