Skip to content

feat: add gw diff command with difftastic support - #31

Merged
jondeibel merged 2 commits into
mainfrom
diff
Mar 6, 2026
Merged

jondeibel merged 2 commits into
mainfrom
diff

Conversation

@jondeibel

Copy link
Copy Markdown
Owner

Summary

  • Adds gw diff command that shows only the current branch's changes (merge-base to HEAD)
  • Uses difftastic as the diff engine when available, falls back to regular git diff
  • Supports --stat for diffstat summary and --no-difftastic to force regular diff
  • Declares difftastic as a Homebrew runtime dependency via cargo-dist so brew install users get it automatically

Test plan

  • gw diff shows difftastic output for branch changes
  • gw diff --stat shows diffstat summary
  • gw diff --no-difftastic falls back to regular git diff
  • Graceful fallback when difftastic is not installed
  • Error message when branch is not in a stack
  • All existing tests pass

🤖 Generated with Claude Code

jondeibel and others added 2 commits March 5, 2026 23:07
cargo-dist will include depends_on "difftastic" in the generated
formula so brew users get it automatically. Shell installer users
still get the graceful fallback to regular git diff.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jondeibel
jondeibel merged commit 7bf9fd8 into main Mar 6, 2026
1 check passed
@jondeibel
jondeibel deleted the diff branch March 6, 2026 04:08
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