Community plugin

Fudanyrd / dsh-merge-conflicts

DSH sidebar tab that lists and resolves git merge conflicts (accept current / incoming / both).

  • TypeScript
  • MIT
  • 0 stars
  • Nov 17, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-merge-conflicts is a DSH plugin published from the Fudanyrd/dsh-merge-conflicts repository.

  • Listing statusManifest verified
  • Manifest checkedNov 17, 2026
  • Packagedsh-merge-conflicts
  • Package version0.1.0
  • Source commitfa3556a
  • Repository createdNov 15, 2026

Capabilities and topics

deepseek-harnessdsh-better-sidebar
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

dsh-merge-conflicts

A dsh-better-sidebar consumer plugin that adds a Merge conflicts tab to the DSH right sidebar. It lists every unmerged (conflicted) file from git status, shows both sides of each conflict, and resolves it — accept current, accept incoming, or accept both — then stages the result.

What it does

  • Lists conflicted files (porcelain v2 u records: UU, AA, AU, UA, DD, DU, UD) and detects the active operation (merge / rebase).
  • Shows the current side and the incoming side side-by-side, plus the raw file with conflict markers highlighted.
  • Resolves a conflict:
    • Accept current — take the current side and stage it (git checkout --ours/--theirs).
    • Accept incoming — take the incoming side and stage it.
    • Accept both — strip the conflict markers and keep both blocks (union), then stage the result. Disabled for delete/modify conflicts that carry no markers.
  • The rebase ours/theirs swap is handled automatically: during a rebase, "current" is the commit being replayed and "incoming" is the upstream.

Resolution only stages the file (git add); it never commits, pushes or sets git identity.

Architecture

  • Host half (src/index.ts, src/git-conflicts.ts) — a Node cordis plugin that spawns git and serves three JSON POST routes under /merge-conflicts/api:
    • list → { root, operation, conflicts: [{ path, rel, xy, label }] }
    • read → { path, rel, xy, label, operation, content, current, incoming, hasMarkers }
    • resolve → { path } for mode: "current" | "incoming" | "both"
  • Client half (src/client/index.tsx) — registers the dsh-merge-conflicts:list tab through ctx.betterSidebar.registerTab and renders the React UI.

Every route is admitted through the same public Connection service as the /api gateway (Host/Origin + browser authentication).

Install

Marketplace / plugin registry

dsh.plugin.json declares the manifest (id: dsh-external/dsh-merge-conflicts) and the client entry. Install through the DSH plugin market, or add it to your profile manually.

Manual profile mount

cd ~/.dsh/profiles/web
pnpm add dsh-merge-conflicts   # or link:../dsh-merge-conflicts

Then append a row to ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: dsh-merge-conflicts
      name: dsh-merge-conflicts

Hard-refresh the browser (Ctrl/Cmd+Shift+R) for the client half; restart the dsh web host only if you change the host half.

Quick Validation

Create an empty directory, change to it, use tools/demo.sh to create a merge-conflict scenario, and open this directory with deepseek-harness. You should see the following upon opening the merge-conflict view inside the right sidebar:

Build

pnpm install
pnpm build     # tsc declarations + tsdown (lib/index.js + lib/client.js)

pnpm typecheck runs the standalone type gate. The client bundle registers with window.__ModuleLoader__.load({ id: 'dsh-merge-conflicts', … }) (the package name — the profile channel keys client-modules rows on it) and externals react / cordis resolve through the shell module table.

License

MIT

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/Fudanyrd/dsh-merge-conflicts)