X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=sync.sh;h=498a2b3f894b600bd9deb849b6f8ed676e6f5cde;hb=27b94f650cd4d27bbf8bd9fc33030077a675d4d7;hp=7ffcd44f652c435882b796e63f86932b66233399;hpb=4240ee37be2576a533b02b1c640e1e42f2788e27;p=config%2Fdotfiles.git diff --git a/sync.sh b/sync.sh index 7ffcd44..498a2b3 100755 --- a/sync.sh +++ b/sync.sh @@ -28,8 +28,11 @@ for project in `find . -name .git -type d`; do # Display all commits not in the master branch. if [ $method = status ]; then - echo "$project status" - git log --graph --all --pretty=oneline master.. + output=`git log --graph --all --pretty=oneline --color master..` + if [ "x$output" != x ]; then + echo "$project status:" + echo "$output" + fi # Fetch from/Push to all remotes. else for remote in `git remote`; do