(&mut self, state: &GitStateRef)
| 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 { |
no test coverage detected