zsh-users
 help / color / mirror / code / Atom feed
* [PATCH] Misc/vcs_info: self-document ahead/behind example
@ 2011-10-19 19:51 Suraj N. Kurapati
  0 siblings, 0 replies; only message in thread
From: Suraj N. Kurapati @ 2011-10-19 19:51 UTC (permalink / raw)
  To: zsh-users


[-- Attachment #1.1: Type: text/plain, Size: 78 bytes --]

Attached, thanks.

-- 
Row, row, row your bits, gently down the stream...

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Misc-vcs_info-self-document-ahead-behind-example.patch --]
[-- Type: text/x-patch, Size: 937 bytes --]

From 11571b1f506bf0eddc5932b106cee9a8650c993c Mon Sep 17 00:00:00 2001
From: "Suraj N. Kurapati" <sunaku@gmail.com>
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-untracked
 
 ### git: Show +N/-N when your local branch is ahead-of or behind remote HEAD.
 # 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
 
-- 
1.7.7


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-19 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-19 19:51 [PATCH] Misc/vcs_info: self-document ahead/behind example Suraj N. Kurapati

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).