From 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-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