Skip to main content

Module branch

Module branch 

Source
Expand description

Branch garbage collector implementation.

Identifies and tombstones memories associated with deleted git branches.

Structsยง

BranchGarbageCollector
Garbage collector for branch-scoped memories.
GcResult
Result of a garbage collection operation.

Functionsยง

branch_exists
Performs a quick check if the current branch exists.
duration_to_millis ๐Ÿ”’
Safely converts Duration to milliseconds as u64, capping at u64::MAX.
u64_to_f64 ๐Ÿ”’
Converts u64 to f64 for metrics, capping at u32::MAX.
usize_to_f64 ๐Ÿ”’
Converts usize to f64 for metrics, capping at u32::MAX.