#!/bin/sh
gitfetch
LOCAL=$(gitrev-parse@)REMOTE=$(gitrev-parse@{u})BASE=$(gitmerge-base@@{u})if[$LOCAL=$REMOTE];thenecho"Up-to-date"elif[$LOCAL=$BASE];thenecho"Need to pull"gitpull
makeclean
makesite
elif[$REMOTE=$BASE];thenecho"Need to push"elseecho"Diverged"fi