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

Function insert_request

atomic-cli/src/commands/rpc.rs:3912–3937  ·  view source on GitHub ↗
(
    session: &Service,
    source: Option<pb::insert_changes_request::Source>,
    target_view: Option<String>,
    allow_conflicts: bool,
    deps: bool,
    dry_run: bool,
)

Source from the content-addressed store, hash-verified

3910// ---------------------------------------------------------------------------
3911
3912fn insert_request(
3913 session: &Service,
3914 source: Option<pb::insert_changes_request::Source>,
3915 target_view: Option<String>,
3916 allow_conflicts: bool,
3917 deps: bool,
3918 dry_run: bool,
3919) -> pb::InsertChangesRequest {
3920 // Dependency closure is the wire's default; the CLI's --deps=false
3921 // escape hatch rides apply_dependencies explicitly (the handler
3922 // applies or skips the closure server-side); dry_run previews the
3923 // plan server-side without inserting.
3924 pb::InsertChangesRequest {
3925 repository: Some(session.reference.clone()),
3926 meta: None,
3927 apply_dependencies: Some(deps),
3928 source,
3929 target_view,
3930 allow_conflicts,
3931 target: None,
3932 expected_snapshot: None,
3933 source_snapshot: None,
3934 dry_run: Some(dry_run),
3935 tag_from_view: None,
3936 }
3937}
3938
3939fn insert_rpc(
3940 session: &Service,

Callers 5

insert_singleFunction · 0.85
insert_from_viewFunction · 0.85
insert_up_to_tagFunction · 0.85
insert_changesFunction · 0.85
insert_promoteFunction · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected