sapling/eden/fs/utils/CaseSensitivity.h
Xavier Deguillard cc5951d322 service: key mount map with an AbsolutePath
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
2021-06-09 21:34:27 -07:00

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