View Full Version : Check if local git tree is up-to-date ?
imported_Devport
May 27th, 2007, 11:25 PM
I want to write a small script to check if the current local git tree is up to date ( in sync with repository ) to fetch and rebuild the set of compcom packages if neccessary only ( will be for gentoo / xeffects ).
Can anybody tell me how to check if a local copy is up to date ?
Jupiter
June 7th, 2007, 07:19 PM
Devport the Xeffects ebuilds pull directly from the git repo - git://anongit.freedesktop.org/compcomm
Not a local repo in Xeffects. To check if there is any updates you can use gitweb
http://gitweb.opencompositing.org/?o=age
Let me know if this information helps.
sonicbhoc
June 7th, 2007, 11:58 PM
Hey Devport, when you write that script, can you post it here?
imported_Devport
June 8th, 2007, 02:10 PM
I need a simple command to query the current version of a git tree ( local and remote ). Its probably as easy as git --version ... but I can`t find it.
Jupiter
June 8th, 2007, 05:57 PM
I need a simple command to query the current version of a git tree ( local and remote ). Its probably as easy as git --version ... but I can`t find it.
How about something like
[code:54e2d]git log | head -n1 | tail -c41[/code:54e2d]
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.