Share a Git diff
Turn a raw patch into a clean review link.
Diffdump turns a unified Git diff into an unlisted browser view with syntax highlighting, file navigation, and split or unified layouts. Share links use random URLs, accept patches up to 2 MiB, and expire after 24 hours.
Updated
Create a share linkShare a diff from the browser
- Open Diffdump and select the
diff.patchtab. - Paste a UTF-8 unified diff into the editor.
- Create the link, review the rendered patch, and send the URL to your reviewer.
Share a diff from the terminal
Send the working-tree patch with one command. Diffdump returns the new share URL as plain text.
git diff | curl -T- https://diffdump.com/dOn macOS, append | xargs open to open the returned URL immediately.
git diff | curl -T- https://diffdump.com/d | xargs openWhat is stored?
Raw shared diffs are stored in a private Cloudflare R2 bucket under a random 96-bit URL slug. Each request checks the stored expiration time, so links stop working after 24 hours. An R2 lifecycle rule deletes the expired objects afterward.
Links are unlisted rather than access-controlled: anyone who has the URL can open the diff. Remove credentials, private keys, and other secrets before sharing.
Expand unchanged lines from GitHub
Terminal uploads can include a GitHub repository and full base commit SHA. When a reviewer expands collapsed context, their browser fetches the base file directly from GitHub and applies the shared patch locally. Public repositories work anonymously; private repositories use the reviewer’s locally saved GitHub token. core.quotepath=off keeps non-ASCII file paths literal in the patch so their context stays expandable.
BASE_SHA=$(git rev-parse HEAD)
git -c core.quotepath=off diff --full-index --binary "$BASE_SHA" |
curl -T- \
-H "X-Diffdump-GitHub-Repo: org/repository" \
-H "X-Diffdump-Base-Sha: $BASE_SHA" \
https://diffdump.com/dWhat can be shared?
- Working-tree or staged changes from a Git repository.
- A commit exported as a unified patch.
- Multi-file
.diffand.patchcontent up to 2 MiB. - Agent-generated code changes that need human review.