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

Method put_git_state

atomic-core/src/operation/codec.rs:587–594  ·  view source on GitHub ↗
(&mut self, state: &GitStateRef)

Source from the content-addressed store, hash-verified

585 }
586
587 fn put_git_state(&mut self, state: &GitStateRef) -> Result<(), OperationCodecError> {
588 self.put_git_head(&state.head)?;
589 self.put_optional_tag(state.index.is_some())?;
590 if let Some(index) = &state.index {
591 self.put_git_index(index)?;
592 }
593 self.put_hash(state.refs_digest)
594 }
595
596 fn put_git_head(&mut self, state: &GitHeadState) -> Result<(), OperationCodecError> {
597 match state {

Callers 1

put_repo_stateMethod · 0.80

Calls 4

put_git_headMethod · 0.80
put_optional_tagMethod · 0.80
put_git_indexMethod · 0.80
put_hashMethod · 0.80

Tested by

no test coverage detected