Re: How to check repository/working tree status from a script
- From
Tony Finch <dot@dotat.at>
- Date
- May 19, 2009, 15:34 UTC
- Message-ID
- <alpine.LSU.2.00.0905191630120.23478@hermes-2.csi.cam.ac.uk>
- 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 <dot@dotat.at> http://dotat.at/ GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS. MODERATE OR GOOD.