mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
bfd539c9c2
Summary: It is a minor historical mistake that Blob knew its own ID. There can be multiple ID schemes that reference a single blob, and sometimes we want to construct a blob without an ID available. Now that blob IDs are never read directly, remove the field and simplify a variety of construction sites. Reviewed By: kmancini Differential Revision: D39188561 fbshipit-source-id: 72b59b744aac42c312816d568fa563629575267a
27 lines
495 B
C++
27 lines
495 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include "eden/fs/model/BlobFwd.h"
|
|
|
|
namespace folly {
|
|
class IOBuf;
|
|
}
|
|
|
|
namespace facebook::eden {
|
|
|
|
class ObjectId;
|
|
|
|
/**
|
|
* Creates an Eden Blob from the serialized version of a Git blob object.
|
|
*/
|
|
BlobPtr deserializeGitBlob(const folly::IOBuf* data);
|
|
|
|
} // namespace facebook::eden
|