Re: Switching from CVS to GIT
- From
- Eli Zaretskii <eliz@gnu.org>
- Date
- Oct 16, 2007, 07:17 UTC
- Message-ID
- <E1Ihgfs-0004DL-S5@fencepost.gnu.org>
- In-Reply-To
- <47145D6D.80001@viscovery.net>
Show 12 quoted lines
> Date: Tue, 16 Oct 2007 08:42:53 +0200 > From: Johannes Sixt <j.sixt@viscovery.net> > Cc: Daniel Barkalow <barkalow@iabervon.org>, raa.lkml@gmail.com, > Johannes.Schindelin@gmx.de, ae@op5.se, > Benoit SIGOURE <tsuna@lrde.epita.fr>, > "git@vger.kernel.org >> Git Mailing List" <git@vger.kernel.org>, > Make Windows <make-w32@gnu.org> > > Thanks to Marius Storm-Olsen we already have a stat replacement that's twice > as fast as msvcrt's stat. I calls only one API function > (GetFileAttributesEx, but of course I don't know what's going on under its > hood), because we need only a small part of struct stat filled in correctly.
Yes, I've seen that. What I'm saying is that you can combine `readdir' with `stat' in one API call (FindFirstFile/FindNextFile), which will both read the directory and return you the attributes you get from `stat'. Think about `readdir' that brings you mode bits and modification time together with the name, as some modern systems do.