mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
25 lines
546 B
C++
25 lines
546 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.
|
||
|
*/
|
||
|
|
||
|
#include "eden/fs/store/IObjectStore.h"
|
||
|
|
||
|
namespace {
|
||
|
using namespace facebook::eden;
|
||
|
class NullObjectFetchContext : public ObjectFetchContext {};
|
||
|
} // namespace
|
||
|
|
||
|
namespace facebook {
|
||
|
namespace eden {
|
||
|
|
||
|
ObjectFetchContext& ObjectFetchContext::getNullContext() {
|
||
|
static auto* p = new NullObjectFetchContext;
|
||
|
return *p;
|
||
|
}
|
||
|
|
||
|
} // namespace eden
|
||
|
} // namespace facebook
|