At 2010-09-22 19:21:45 +0300, pete...@gmx.net wrote:
>
> Well, let's see.  If someone can figure out the git equivalent of
> 
> if cvs -q update | egrep -q '^(U|P) '; then
>   # ... something changed, so run the update ...
> fi

I think you want:

    git pull
    if [ $(git rev-parse HEAD) != $(git rev-parse ORIG_HEAD) ]; then
        # ... the pull changed something ...
    fi

-- ams

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to