diffx-start-review
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStart diffx Review
启动diffx评审
Launch the diffx server so the user can review their git changes in a browser-based UI and leave inline comments.
启动diffx服务器,以便用户可以在基于浏览器的UI中评审其git变更并留下行内评论。
What to do
操作步骤
1. Launch diffx
1. 启动diffx
Run in the background. By default it shows all working tree changes (staged + unstaged + untracked).
diffxbash
diffxCommon variations — use these when the context calls for it:
bash
diffx -- --staged # Only staged changes
diffx -- HEAD~3 # Last 3 commits
diffx -- main..HEAD # Current branch vs main
diffx -p 8080 # Custom port (default: random available port)Anything after is passed directly to , so any valid git diff arguments work.
--git diffImportant: Run diffx in the background using the Bash tool with , so the server stays alive while the user reviews.
run_in_background: true在后台运行,默认情况下它会展示所有工作区变更(已暂存+未暂存+未追踪)。
diffxbash
diffx常用变体——当上下文需要时可使用以下命令:
bash
diffx -- --staged # 仅展示已暂存变更
diffx -- HEAD~3 # 最近3次提交的变更
diffx -- main..HEAD # 当前分支与main分支的差异
diffx -p 8080 # 自定义端口(默认:随机可用端口)--git diff重要提示: 请使用Bash工具在后台运行diffx,设置,确保用户评审期间服务器保持运行。
run_in_background: true2. Tell the user
2. 告知用户
After launching, tell the user:
diffx is running. Review your changes in the browser and leave inline comments. When you're done, come back here and run./diffx-finish-review
Keep it brief.
启动完成后,告知用户以下内容:
diffx已运行,请在浏览器中评审你的变更并留下行内评论,完成后返回此处运行。/diffx-finish-review
请保持内容简洁。