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

Function update_target_branch

atomic-cli/src/commands/git/shim.rs:1772–1787  ·  view source on GitHub ↗
(
    repo: &Repository,
    working_copy: WorkingCopyId,
    git: &GitRepository,
    target_ref: &str,
    commit: Oid,
)

Source from the content-addressed store, hash-verified

1770}
1771
1772fn update_target_branch(
1773 repo: &Repository,
1774 working_copy: WorkingCopyId,
1775 git: &GitRepository,
1776 target_ref: &str,
1777 commit: Oid,
1778) -> CliResult<()> {
1779 journal_and_move_branch(
1780 repo,
1781 working_copy,
1782 git,
1783 target_ref,
1784 commit,
1785 "atomic shim switch",
1786 )
1787}
1788
1789fn import_git_to_atomic(root: &Path) -> CliResult<()> {
1790 import_git_to_atomic_budgeted(root, ReconcileEffectBudget::Command)

Callers 1

switch_transactionFunction · 0.85

Calls 1

journal_and_move_branchFunction · 0.85

Tested by

no test coverage detected