Skip to content

feat(info): add parent-relative diff output#28

Merged
dubscode merged 1 commit intomainfrom
feat/info-diff
Mar 11, 2026
Merged

feat(info): add parent-relative diff output#28
dubscode merged 1 commit intomainfrom
feat/info-diff

Conversation

@dubscode
Copy link
Contributor

@dubscode dubscode commented Mar 11, 2026


🥞 DubStack

Copilot AI review requested due to automatic review settings March 11, 2026 02:55
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dubstack Ready Ready Preview, Comment Mar 11, 2026 3:37am

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an optional parent-relative git diff to the dub info / dub branch info commands, aligning CLI output with existing diff capabilities in lib/git and documenting the new flag.

Changes:

  • Introduces branchInfoOutput() to format branch info and optionally append a parent-relative diff.
  • Adds -d, --diff flag to both dub info and dub branch info via a shared showInfo action.
  • Extends Vitest coverage and updates docs/README examples to include dub info --diff.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/cli/src/index.ts Adds --diff option and reuses a shared showInfo() action to print info output.
packages/cli/src/commands/branch.ts Adds branchInfoOutput() which appends getDiffBetween(parent...branch) output when requested.
packages/cli/src/commands/branch.test.ts Adds tests covering diff output, no-changes output, root-branch behavior, and untracked-branch behavior.
apps/docs/content/docs/commands/log.mdx Documents dub info --diff usage example.
README.md Updates dub info section to mention and show the --diff flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dubscode dubscode merged commit 36f4c8e into main Mar 11, 2026
6 checks passed
@dubscode dubscode deleted the feat/info-diff branch March 11, 2026 03:39
@github-actions
Copy link

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants