2016-05-12 23:43:17 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016, 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
|
|
|
|
|
2016-06-09 04:59:57 +03:00
|
|
|
#include <folly/Range.h>
|
|
|
|
|
|
|
|
namespace folly {
|
|
|
|
class IOBuf;
|
|
|
|
}
|
2016-05-12 23:43:17 +03:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace eden {
|
|
|
|
|
|
|
|
class Hash;
|
|
|
|
class Blob;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an Eden Blob from the serialized version of a Git blob object.
|
|
|
|
* As such, the SHA-1 of the gitBlobObject should match the hash.
|
|
|
|
*/
|
|
|
|
std::unique_ptr<Blob> deserializeGitBlob(
|
|
|
|
const Hash& hash,
|
2016-06-09 04:59:57 +03:00
|
|
|
const folly::IOBuf* data);
|
2016-05-12 23:43:17 +03:00
|
|
|
}
|
|
|
|
}
|