mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
68cf44a8d1
Summary: It's silly to use `eden prefetch --no-prefetch` to efficiently glob for filenames. Introduce an `eden glob` command which resolves a glob relative to the current working directory. Reviewed By: genevievehelsel Differential Revision: D25450358 fbshipit-source-id: 45d6dc870d21510e51d5662c75e80385886899fc
27 lines
619 B
C++
27 lines
619 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/futures/Future.h>
|
|
#include "eden/fs/store/ObjectFetchContext.h"
|
|
#include "eden/fs/utils/PathFuncs.h"
|
|
|
|
namespace facebook::eden {
|
|
|
|
class ObjectFetchContext;
|
|
class ObjectStore;
|
|
class Tree;
|
|
|
|
folly::Future<std::shared_ptr<const Tree>> resolveTree(
|
|
ObjectStore& objectStore,
|
|
ObjectFetchContext& fetchContext,
|
|
std::shared_ptr<const Tree> root,
|
|
RelativePathPiece path);
|
|
|
|
} // namespace facebook::eden
|