sapling/eden/fs/model/git/GitBlob.h
Chad Austin bfd539c9c2 stop constructing blobs with their IDs
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
2023-07-24 16:29:25 -07:00

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