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
use StorageError;
/// Reads abstract references that map names to opaque identifiers.
///
/// In a Git-backed implementation, these correspond to Git refs pointing
/// at commit OIDs. The domain treats them as opaque byte sequences
/// without assuming Git semantics.
///
/// Usage:
/// ```ignore
/// use auths_core::ports::storage::RefReader;
///
/// fn current_tip(reader: &dyn RefReader, refname: &str) -> Vec<u8> {
/// reader.resolve_ref(refname).unwrap()
/// }
/// ```