mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
cc5951d322
Summary: Using a PathMap to hold the list of mounts gives us case sensitivity for free without needing to have #ifdef _WIN32, we can also avoid copying the paths just to normalize them. Reviewed By: fanzeyi Differential Revision: D28969795 fbshipit-source-id: 859cdc3881e36db120913099ce3f451940fa48a4
21 lines
473 B
C++
21 lines
473 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <folly/Portability.h>
|
|
|
|
namespace facebook::eden {
|
|
enum class CaseSensitivity : bool {
|
|
Insensitive = false,
|
|
Sensitive = true,
|
|
};
|
|
|
|
constexpr CaseSensitivity kPathMapDefaultCaseSensitive =
|
|
static_cast<CaseSensitivity>(folly::kIsLinux);
|
|
} // namespace facebook::eden
|