22 lines
461 B
Rust
22 lines
461 B
Rust
use std::path::Path;
|
|
|
|
use radicle::{
|
|
storage::{WriteRepository, WriteStorage},
|
|
Profile,
|
|
};
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
let profile = Profile::load()?;
|
|
|
|
let (_, rid) = radicle::rad::repo(Path::new("."))?;
|
|
let repo = profile.storage.repository_mut(rid)?;
|
|
|
|
let id_oid = repo.set_identity_head()?;
|
|
let branch_oid = repo.set_head()?;
|
|
|
|
println!("ok: identity: {id_oid}");
|
|
println!("ok: branch: {branch_oid}");
|
|
|
|
Ok(())
|
|
}
|