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

Function self_push_commit

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

Source from the content-addressed store, hash-verified

4298 }
4299
4300 fn self_push_commit(view: &str, state_b32: &str) -> ParsedCommit {
4301 ParsedCommit {
4302 git_sha: "aabbccdd11223344".to_string(),
4303 short_sha: "aabbccdd".to_string(),
4304 metadata: CommitMetadata {
4305 author_name: "Test".to_string(),
4306 author_email: None,
4307 timestamp: Utc::now(),
4308 message: "feat: test".to_string(),
4309 description: None,
4310 },
4311 files: Vec::new(),
4312 parent_index: None,
4313 is_merge: false,
4314 is_empty: true,
4315 push_trailer: parse_push_trailer(&format!(
4316 "feat: test\n\nAtomic-View: {}\nAtomic-State: {}",
4317 view, state_b32
4318 )),
4319 }
4320 }
4321
4322 #[test]
4323 fn test_should_skip_self_push() {

Callers 1

Calls 1

parse_push_trailerFunction · 0.85

Tested by 1