use porcelain status output from git instead of diff, since diff fails on 1.7.2.5...
Robert 'phaylon' Sedlacek [Tue, 12 Jun 2012 21:06:29 +0000 (21:06 +0000)]
lib/File/Tree/Snapshot.pm

index 005a7c9..3962e21 100644 (file)
@@ -63,7 +63,7 @@ sub create {
 sub _has_changes {
     my ($self) = @_;
     my $path = $self->storage_path;
-    my $cmd = qq{cd $path && git diff --name-only --cached};
+    my $cmd = qq{cd $path && git status --porcelain};
     CORE::open my $handle, '-|', $cmd
       or die "Unable to find changes in ($cmd): $!\n";
     my @changes = <$handle>;