threads / patch / 31435

patch, 3 partsread-cache.c: Fix index reading breakage on cygwin

Subject: [PATCH 1/3] read-cache.c: Fix index reading breakage on cygwin

## tl;dr

One message between Sep 4, 2012 and Sep 4, 2012. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Ramsay Jones· Sep 4, 2012, 18:47 UTC · lore
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 read-cache.c | 2 ++
 1 file changed, 2 insertions(+)
Show changes to read-cache.c +2 −0
diff --git a/read-cache.c b/read-cache.c
index b69dd05..211b971 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1204,9 +1204,11 @@ static int index_changed(struct stat st_old, struct stat st_new)
 	int changed = 0;
 
 	if (st_old.st_mtime != st_new.st_mtime ||
+#if !defined(__CYGWIN__)
 	    st_old.st_uid   != st_new.st_uid ||
 	    st_old.st_gid   != st_new.st_gid ||
 	    st_old.st_ino   != st_new.st_ino ||
+#endif
 	    st_old.st_size  != st_new.st_size)
 		changed = 1;
 #ifdef USE_NSEC
-- 
1.7.12

← back to recent threads