On Thu, Dec 12, 2013 at 10:00:22AM +0100, Rainer M Krug wrote:
>
> On 12/10/13, 21:50 , Samuel Wales wrote:
> > gitpullv () { #echo \=== maybe need to grab tags head=`git
> > rev-parse --verify HEAD` echo git pull --stat --log | cat echo
> > newhead=`git rev-parse --verify HEAD` if [ "$newhead" != "$head" ]
> > then git log --pretty=tformat:%s ORIG_HEAD.. | cat # git log
> > --pretty=tformat:%s --graph ORIG_HEAD.. echo echo '= you can now do
> > git diff ORIG_HEAD -- files pipe tee' return 0 else return 1 fi
> > #git gc --auto git status }
>
> Wow - and I expected a return code from git which I could simply
> compare evaluate if there has something updated...
A `git pull' without new updates, is still a successful pull. It is a
failure only if the remote is unreachable for some reason, or the pull
is interrupted midway.
--
Suvayu
Open source is the future. It sets us free.