nrepo merge
Synopsis
Section titled “Synopsis”nrepo merge <keep-id> <absorb-id> [options]Description
Section titled “Description”nrepo merge combines two ideas into one. The idea specified by <keep-id> is preserved and updated, while the idea specified by <absorb-id> is absorbed into it.
The merge performs the following:
- Body — The absorbed idea’s body is appended to the kept idea’s body.
- Tags — Tags from both ideas are combined (union).
- Relation — A
supersedeslink is created from the kept idea to the absorbed idea. - Status — The absorbed idea is moved to
shelved.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--force | boolean | false | Skip the confirmation prompt. |
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”Interactive merge
Section titled “Interactive merge”nrepo merge 42 43# Merge #43 "Dark mode — Tailwind approach" into #42 "Add dark mode to dashboard"?# (y/N): y# Merged. #42 now supersedes #43.Force merge in a script
Section titled “Force merge in a script”nrepo merge 42 43 --force --jsonPreview before merging
Section titled “Preview before merging”Review both ideas before merging:
nrepo diff 42 43nrepo merge 42 43Related commands
Section titled “Related commands”- nrepo diff — compare two ideas before merging
- nrepo branch — fork an idea into a variant
- nrepo link — manage relations manually
- nrepo duplicate — find and merge detected duplicates