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

Function record_path

atomic-repository/tests/it/stash_attributes_test.rs:9–14  ·  view source on GitHub ↗
(repo: &Repository, path: &str)

Source from the content-addressed store, hash-verified

7use atomic_repository::{RecordOptions, Repository, StashPushOptions, StatusOptions};
8
9fn record_path(repo: &Repository, path: &str) {
10 let wc = repo.require_working_copy_id().unwrap();
11 repo.add(wc, path, Default::default()).unwrap();
12 repo.record_with_message(wc, "base", RecordOptions::default())
13 .unwrap();
14}
15
16#[test]
17fn untracked_only_stash_preserves_executable_and_dangling_link() {

Calls 4

unwrapMethod · 0.45
addMethod · 0.45
record_with_messageMethod · 0.45

Tested by

no test coverage detected