MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / stream_position

Function stream_position

atomic-cli/src/commands/git/parallel.rs:4026–4034  ·  view source on GitHub ↗
(
    mut position: Position<Option<ContentHash>>,
    hash: ContentHash,
)

Source from the content-addressed store, hash-verified

4024}
4025
4026fn stream_position(
4027 mut position: Position<Option<ContentHash>>,
4028 hash: ContentHash,
4029) -> Position<Option<ContentHash>> {
4030 if position.change.is_none() {
4031 position.change = Some(hash);
4032 }
4033 position
4034}
4035
4036fn apply_line_index_updates(
4037 line_index: &mut ImportLineIndex,

Callers 1

Calls 1

is_noneMethod · 0.80

Tested by

no test coverage detected