From 98dc23a529e48c6a9e86caacf3f16a08fc4d69c5 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 13 Aug 2012 01:33:37 +1200 Subject: [PATCH] Explanation for ahead code --- lib/git/status_shortcuts.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/git/status_shortcuts.rb b/lib/git/status_shortcuts.rb index 9f49152..cd7d8ea 100644 --- a/lib/git/status_shortcuts.rb +++ b/lib/git/status_shortcuts.rb @@ -68,8 +68,7 @@ exit if @changes.size > ENV["gs_max_changes"].to_i # Counter for env variables @e = 0 - -# Heading +# Show how many commits ahead we are from origin ahead = @ahead ? " #{@c[:dark]}| #{@c[:new]}+#{@ahead}#{@c[:rst]}" : ""