Re: git working tree status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 26, 2008 at 11:23:35PM +0100, Miklos Vajna <vmiklos@xxxxxxxxxxxxxx> wrote:
> > c) 'dirty' in some way -- new files, uncommitted changes, etc.
> 
> git update-index -q --refresh
> test -z "$(git diff-index --name-only HEAD --)" && echo "dirty"

I wanted to write '|| echo "dirty"', sorry.

Attachment: pgpy1ZonIT7vR.pgp
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux