diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-29 20:34:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-29 20:34:21 +0200 |
commit | 5198586d56bb790d37e7aa1202e99c1219753088 (patch) | |
tree | 7c548bbad42f8e29426539ae7613ca3d86a39c48 | |
parent | afddd3504453272034c1702333bf88706c2e4b73 (diff) |
Moved git-specific logic from pkg_status to vcs_status
-rwxr-xr-x | bin/ct | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -331,8 +331,11 @@ function vcs_push ( ) function vcs_status ( + typeset gitstatus vcs_setup $1 - git status + gitstatus=$(git status) + [[ $gitstatus == *'nothing to commit (working directory clean)' ]] && gitstatus='' + echo $gitstatus ) ## List stuff @@ -754,7 +757,7 @@ function pkg_status { typeset vcs_status check_installed $1 vcs_status=$(PAGER='' vcs_status $1) - if [[ -n $vcs_status && $vcs_status != *'nothing to commit (working directory clean)' ]] { + if [[ -n $vcs_status ]] { if ((SILENT)) { echo $1 } else { |