]> git.proxmox.com Git - cargo.git/commit - src/cargo/sources/path.rs
Reduce calls to fs::metadata in list_git_files
authorAlex Crichton <alex@alexcrichton.com>
Wed, 20 May 2015 06:07:15 +0000 (23:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 20 May 2015 06:07:15 +0000 (23:07 -0700)
commit046a6c59e96d64a8e9d47031a5c0a863c57a8a7a
tree1e16683a4f8bdbd134b91c4670f2fa807c9c297a
parente595e877624712b0838c510a827dec08621c9ade
Reduce calls to fs::metadata in list_git_files

When walking over entries in the index of a git repository the file type can be
known without a syscall (in the form of a libc constant), but walking over
untracked files still requires a syscall to determine if it's a directory.
src/cargo/sources/path.rs