[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: git: quick check for new commits

On Mon, May 30, 2011 at 10:15 AM, DJ Delorie <dj@xxxxxxxxxxx> wrote:
> Is there a quick way to check to see if a local repo is out of date
> relative to a remote repo? ÂI'd like to write a shell script that
> rebuilds pcb but only if something's been committed to the master
> repo. ÂRather than check out the whole tree and see if anything
> changed, I'd rather just compare head revisions. ÂI tried git
> rev-parse but it's "origin/master" result is based on cached values,
> not actual upstream values.
> Perhaps I need to fetch, then rev-parse?

git remote update origin would be the easiest way.

geda-user mailing list