X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=sync.sh;h=e76ce8e55a149d9af664291dfc6032f9fb06f8fb;hb=d648243d7cce390e7321f2d45d42cdec25f295c7;hp=498a2b3f894b600bd9deb849b6f8ed676e6f5cde;hpb=27b94f650cd4d27bbf8bd9fc33030077a675d4d7;p=config%2Fdotfiles.git diff --git a/sync.sh b/sync.sh index 498a2b3..e76ce8e 100755 --- a/sync.sh +++ b/sync.sh @@ -26,6 +26,9 @@ for project in `find . -name .git -type d`; do pwd=`pwd` cd "$project" + # Remove .git from repository name. + project=`echo "$project" | sed "s|.git||"` + # Display all commits not in the master branch. if [ $method = status ]; then output=`git log --graph --all --pretty=oneline --color master..` @@ -43,3 +46,8 @@ for project in `find . -name .git -type d`; do cd "$pwd" done + +# Run status after a fetch to see new changes. +if [ $method = fetch ]; then + ./sync.sh status +fi