Is there a way to git pull until there is something to pull.
Say i'm waiting for a collegue to push his latest changes, since i'm impatient and not looking at his screen, i just run watch git pull until i see something has been pulled, but i could miss the moment and waste a little more time than necessary. (note: yes, this is a very minor inconvenience, but an inconvenience still :) )
git pull does not seem to have a different return value whether it has actually pulled something, but maybe there's some obscure, undocumented option that i don't know about?
EDIT: Thanks for the answers, i added this to my .zshrc:
alias gitpullwait="git pull | grep "Already up-to-date" > /dev/null; while [ $? -ne 1 ]; do git pull | grep "Already up-to-date" > /dev/null; done; notify-send Pull f$
It looks ugly but it works for me.