X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=sync.sh;h=e76ce8e55a149d9af664291dfc6032f9fb06f8fb;hb=d648243d7cce390e7321f2d45d42cdec25f295c7;hp=88b59e296cddb7a0018ea49c754a1fe14baa003f;hpb=0ac6aa77b7b14c940a6b85f633326b57bc03f043;p=config%2Fdotfiles.git diff --git a/sync.sh b/sync.sh index 88b59e2..e76ce8e 100755 --- a/sync.sh +++ b/sync.sh @@ -31,8 +31,11 @@ for project in `find . -name .git -type d`; do # Display all commits not in the master branch. if [ $method = status ]; then - echo "status of $project" - 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