mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Rename Revision oid to head
This commit is contained in:
@@ -11,7 +11,7 @@ export type Revision = {
|
||||
author: Author;
|
||||
description: Array<Edit>;
|
||||
base: string;
|
||||
oid: string;
|
||||
head: string;
|
||||
reviews: Array<Review>;
|
||||
timestamp: bigint;
|
||||
discussion: Array<Comment<CodeLocation>>;
|
||||
|
||||
@@ -132,7 +132,7 @@ pub struct Revision {
|
||||
#[ts(as = "String")]
|
||||
base: git::Oid,
|
||||
#[ts(as = "String")]
|
||||
oid: git::Oid,
|
||||
head: git::Oid,
|
||||
reviews: Vec<Review>,
|
||||
#[ts(as = "i64")]
|
||||
timestamp: cob::common::Timestamp,
|
||||
@@ -150,7 +150,7 @@ impl Revision {
|
||||
.map(|e| Edit::new(e, aliases))
|
||||
.collect::<Vec<_>>(),
|
||||
base: *value.base(),
|
||||
oid: value.head(),
|
||||
head: value.head(),
|
||||
reviews: value
|
||||
.reviews()
|
||||
.map(|(id, r)| Review::new(*id, r.clone(), aliases))
|
||||
|
||||
Reference in New Issue
Block a user