1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use StorageError;
/// Creates, updates, and deletes abstract references.
///
/// In a Git-backed implementation, this corresponds to creating or
/// updating Git refs. The domain provides opaque target bytes and a
/// human-readable message for the reflog.
///
/// Usage:
/// ```ignore
/// use auths_core::ports::storage::RefWriter;
///
/// fn advance_tip(writer: &dyn RefWriter, refname: &str, new_oid: &[u8]) {
/// writer.update_ref(refname, new_oid, "append attestation").unwrap();
/// }
/// ```