pub fn merge_single_spec(
spec_id: &str,
spec_branch: &str,
main_branch: &str,
should_delete_branch: bool,
dry_run: bool,
) -> Result<MergeResult>Expand description
Merge a single spec’s branch into the main branch.
This function:
- Saves the current branch
- Checks if main branch exists
- Checks out main branch
- Merges spec branch with fast-forward only
- Optionally deletes spec branch if requested
- Returns to original branch
In dry-run mode, no actual git commands are executed.