cob: Rename default history type
Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
parent
a79c95283b
commit
86e6fa22a1
|
|
@ -201,7 +201,7 @@ fn load_contents(
|
||||||
manifest: &store::Manifest,
|
manifest: &store::Manifest,
|
||||||
) -> Result<entry::Contents, error::Load> {
|
) -> Result<entry::Contents, error::Load> {
|
||||||
Ok(match manifest.history_type {
|
Ok(match manifest.history_type {
|
||||||
HistoryType::Default | HistoryType::Automerge => {
|
HistoryType::Radicle | HistoryType::Automerge => {
|
||||||
let contents_tree_entry = tree
|
let contents_tree_entry = tree
|
||||||
.get_name(CHANGE_BLOB_NAME)
|
.get_name(CHANGE_BLOB_NAME)
|
||||||
.ok_or_else(|| error::Load::NoChange(tree.id().into()))?;
|
.ok_or_else(|| error::Load::NoChange(tree.id().into()))?;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ pub use entry::{Contents, Entry, EntryId};
|
||||||
#[serde(rename_all = "lowercase")]
|
#[serde(rename_all = "lowercase")]
|
||||||
pub enum HistoryType {
|
pub enum HistoryType {
|
||||||
#[default]
|
#[default]
|
||||||
Default,
|
Radicle,
|
||||||
Automerge,
|
Automerge,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue