mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
5dfe853be0
Summary: Small things I noticed while working on other stuff. Reviewed By: strager Differential Revision: D10055671 fbshipit-source-id: de8c3b04928567a821172e6fa7ee0e056958e1e7
38 lines
940 B
C++
38 lines
940 B
C++
/*
|
|
* Copyright (c) 2017-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 <iosfwd>
|
|
#include "eden/fs/model/Hash.h"
|
|
#include "eden/fs/service/gen-cpp2/EdenService.h"
|
|
|
|
namespace folly {
|
|
template <typename T>
|
|
class Future;
|
|
}
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
class EdenMount;
|
|
|
|
/**
|
|
* Returns the single-char representation for the ScmFileStatus used by
|
|
* SCMs such as Git and Mercurial.
|
|
*/
|
|
char scmStatusCodeChar(ScmFileStatus code);
|
|
|
|
std::ostream& operator<<(std::ostream& os, const ScmStatus& status);
|
|
|
|
folly::Future<std::unique_ptr<ScmStatus>>
|
|
diffMountForStatus(const EdenMount& mount, Hash commitHash, bool listIgnored);
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|