From 549d5eaf130f608e21688ef21487eb7ca8f2e564 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 30 Apr 2013 17:09:01 +0200 Subject: [Git] Get old behaviour for diffs/status : only on current subfolder --- 01_Internal.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '01_Internal.zsh') diff --git a/01_Internal.zsh b/01_Internal.zsh index 0d0babb..0769318 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -300,11 +300,11 @@ __get_git_status () return fi - if [ "$(git status --porcelain | cut -c1 | tr -d ' ?\n')" != "" ] ; then + if [ "$(git status --porcelain . | cut -c1 | tr -d ' ?\n')" != "" ] ; then # Got any character but « » or «?» in first column : staged changes cached="yes" fi - if [ "$(git status --porcelain | cut -c2 | tr -d ' ?\n')" != "" ] ; then + if [ "$(git status --porcelain . | cut -c2 | tr -d ' ?\n')" != "" ] ; then # Got any character but « » or «?» in second column : working tree changes changed="yes" fi @@ -334,8 +334,8 @@ __get_git_status () __debug - __debug -n " stashes..." - if [ $(git status | sed -n '2{/can be fast-forwarded/p;/have diverged/p};3q' | wc -l) -gt 0 ] + __debug -n " merges..." + if [ $(git status . | sed -n '2{/can be fast-forwarded/p;/have diverged/p};3q' | wc -l) -gt 0 ] then my_git_status+=";$_gcl_colors[ffwd]" fi -- cgit v1.2.3