MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / commit_files_noop_when_clean

Function commit_files_noop_when_clean

crates/flowtrace-cli/src/git.rs:511–520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509
510 #[test]
511 fn commit_files_noop_when_clean() {
512 let d = tempdir().unwrap();
513 init(d.path()).unwrap();
514 write(&d.path().join("a.txt"), b"hi");
515 commit_files(d.path(), "first", &["a.txt"]).unwrap();
516 let sha1 = head_sha(d.path()).unwrap();
517 commit_files(d.path(), "second", &["a.txt"]).unwrap();
518 let sha2 = head_sha(d.path()).unwrap();
519 assert_eq!(sha1, sha2, "no-op commit should not advance HEAD");
520 }
521
522 #[test]
523 fn show_at_returns_historical_bytes() {

Callers

nothing calls this directly

Calls 4

initFunction · 0.85
writeFunction · 0.85
commit_filesFunction · 0.85
head_shaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…