Skip to content

feat: add parsec diff to view worktree changes#44

Merged
erishforG merged 1 commit intodevelopfrom
feature/41
Apr 15, 2026
Merged

feat: add parsec diff to view worktree changes#44
erishforG merged 1 commit intodevelopfrom
feature/41

Conversation

@erishforG
Copy link
Copy Markdown
Owner

Summary

  • Add parsec diff command to view changes in a worktree compared to its base branch using merge-base
  • Support --stat for file-level summary and --name-only for changed file names
  • Full --json support for machine-readable output of changed files

Changes

File Change
src/cli/mod.rs Add Diff variant to Command enum + routing in run()
src/cli/commands.rs Add diff() command handler with merge-base comparison
src/output/mod.rs Add print_diff_names, print_diff_stat, print_diff_full_json dispatchers
src/output/human.rs Add human-readable diff name and stat output
src/output/json.rs Add JSON output for diff names and full diff
README.md Add parsec diff documentation section
docs/index.html Add Worktree Diff feature card

Test plan

  • parsec diff inside a worktree shows full colored diff vs base branch
  • parsec diff TICKET shows diff for a specific ticket's worktree
  • parsec diff --stat shows file-level summary
  • parsec diff --name-only lists changed file names
  • parsec diff --json outputs JSON with changed files and statuses
  • parsec diff outside a worktree without ticket shows helpful error
  • cargo fmt && cargo build && cargo clippy passes clean

Closes #41

Add `parsec diff` command that shows the diff between a worktree branch
and its base branch using merge-base for accurate comparison. Supports
--stat, --name-only, and --json output modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erishforG erishforG merged commit a76ff0e into develop Apr 15, 2026
7 checks passed
@erishforG erishforG deleted the feature/41 branch April 15, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant