From: Junio C Hamano Date: Wed, 01 Feb 2006 08:51:56 GMT Subject: Re: [Census] So who uses git? Message-ID: <7vslr3ea1f.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060201070847.2021.qmail@science.horizon.com> linux@horizon.com writes: > At the risk of complicating something already very complicated, and > possibly breaking on Microsoft file systems, that case can be detected > by reading the directory and noticing that the inode number changed. > > Would it be worth validating the inode numbers (which can be retrieved > in a batch) even if you don't do a full lstat()? I suspect that what you said about Microsoft filesystems is even stronger. IIRC the latest Cygwin stopped giving d_ino regardless of the filesystem type; you need to do a stat() anyway.