[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bash script to update - only make when update there?
From: |
Suvayu Ali |
Subject: |
Re: [O] Bash script to update - only make when update there? |
Date: |
Fri, 13 Dec 2013 01:26:33 +0100 |
User-agent: |
Mutt/1.5.22.1-rc1 (2013-10-16) |
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.
- [O] Bash script to update - only make when update there?, Rainer M Krug, 2013/12/10
- Re: [O] Bash script to update - only make when update there?, Nick Dokos, 2013/12/10
- Re: [O] Bash script to update - only make when update there?, Rainer M Krug, 2013/12/10
- Re: [O] Bash script to update - only make when update there?, Nick Dokos, 2013/12/10
- Re: [O] Bash script to update - only make when update there?, Rainer M Krug, 2013/12/10
- Re: [O] Bash script to update - only make when update there?, Samuel Wales, 2013/12/10
- Re: [O] Bash script to update - only make when update there?, Rainer M Krug, 2013/12/12
- Re: [O] Bash script to update - only make when update there?,
Suvayu Ali <=
- Re: [O] Bash script to update - only make when update there?, Rainer M Krug, 2013/12/13
Re: [O] Bash script to update - only make when update there?, Achim Gratz, 2013/12/10