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

Function self_push_commit

atomic-cli/src/commands/git/parallel.rs:4669–4689  ·  view source on GitHub ↗
(view: &str, state_b32: &str)

Source from the content-addressed store, hash-verified

4667 }
4668
4669 fn self_push_commit(view: &str, state_b32: &str) -> ParsedCommit {
4670 ParsedCommit {
4671 git_sha: "aabbccdd11223344".to_string(),
4672 short_sha: "aabbccdd".to_string(),
4673 metadata: CommitMetadata {
4674 author_name: "Test".to_string(),
4675 author_email: None,
4676 timestamp: Utc::now(),
4677 message: "feat: test".to_string(),
4678 description: None,
4679 },
4680 files: Vec::new(),
4681 parent_index: None,
4682 is_merge: false,
4683 is_empty: true,
4684 push_trailer: parse_push_trailer(&format!(
4685 "feat: test\n\nAtomic-View: {}\nAtomic-State: {}",
4686 view, state_b32
4687 )),
4688 }
4689 }
4690
4691 #[test]
4692 fn test_should_skip_self_push() {

Callers 1

Calls 1

parse_push_trailerFunction · 0.85

Tested by 1