mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
251da81f36
Summary: Update copyright statements to "2016-present". This makes our updated lint rules happy and complies with the recommended license header statement. Reviewed By: wez, bolinfest Differential Revision: D4433594 fbshipit-source-id: e9ecb1c1fc66e4ec49c1f046c6a98d425b13bc27
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
#include "eden/utils/PathFuncs.h"
|
|
|
|
/**
|
|
* Utility functions for use with various members of EdenMount.
|
|
*/
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
class EdenMount;
|
|
|
|
/**
|
|
* @param toIgnore elements of the set are relative to the root of the mount.
|
|
* @return vector with the RelativePath of every directory that is modified
|
|
* according to the overlay in the mount, but scoped to directoryInMount.
|
|
* The vector will be ordered as a depth-first traversal of the overlay.
|
|
*/
|
|
std::vector<RelativePath> getModifiedDirectories(
|
|
const EdenMount* mount,
|
|
RelativePathPiece directoryInMount,
|
|
const std::unordered_set<RelativePathPiece>* toIgnore);
|
|
|
|
/**
|
|
* @return vector with the RelativePath of every directory that is modified
|
|
* according to the overlay in the mount. The vector will be ordered as a
|
|
* depth-first traversal of the overlay.
|
|
*/
|
|
std::vector<RelativePath> getModifiedDirectoriesForMount(
|
|
const EdenMount* mount,
|
|
const std::unordered_set<RelativePathPiece>* toIgnore);
|
|
}
|
|
}
|