mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
a29d465ee8
Summary: With Facebook having been renamed Meta Platforms, we need to change the license headers. Reviewed By: fanzeyi Differential Revision: D33407812 fbshipit-source-id: b11bfbbf13a48873f0cea75f212cc7b07a68fb2e
24 lines
543 B
C++
24 lines
543 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#include "eden/fs/model/RootId.h"
|
|
#include <folly/String.h>
|
|
#include <ostream>
|
|
#include <string>
|
|
|
|
namespace facebook::eden {
|
|
|
|
std::ostream& operator<<(std::ostream& os, const RootId& rootId) {
|
|
return os << rootId.value();
|
|
}
|
|
|
|
void toAppend(const RootId& rootId, std::string* result) {
|
|
folly::cEscape(rootId.value(), *result);
|
|
}
|
|
|
|
} // namespace facebook::eden
|