From: Tony Finch Date: Tue, 19 May 2009 15:34:47 GMT Subject: Re: How to check repository/working tree status from a script Message-ID: In-Reply-To: <20090519143537.GA23505@torres.zugschlus.de> On Tue, 19 May 2009, Marc Haber wrote: Hi Marc. > I would like to check in a script whether there (a) are uncommitted > changes (as in "working tree differs from local repository") # check working tree is not different from the index git diff --quiet # check that the index is not different from the head git diff --quiet --cached > and/or whether there (b) are unpulled changes in the "remote origin" > repository. Dunno, sorry. Tony. -- f.anthony.n.finch http://dotat.at/ GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS. MODERATE OR GOOD.