Skip to content

fix(client): prevent using --all with file paths together #8380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2025

Conversation

estib-vega
Copy link
Contributor

Add a check to throw an error if both --all and file paths are provided
simultaneously. This enforces correct usage and avoids ambiguous commit
behavior. The validation is moved earlier to simplify the flow and
prevent unnecessary processing when the conflict occurs.

@vercel vercel bot temporarily deployed to Preview – gitbutler-components May 3, 2025 08:03 Inactive
@vercel vercel bot temporarily deployed to Preview – gitbutler-web May 3, 2025 08:03 Inactive
Copy link

vercel bot commented May 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
gitbutler-components ⬜️ Skipped (Inspect) May 3, 2025 8:50am
gitbutler-web ⬜️ Skipped (Inspect) May 3, 2025 8:50am

@estib-vega estib-vega enabled auto-merge May 3, 2025 08:03
Add a check to throw an error if both --all and file paths are provided
simultaneously. This enforces correct usage and avoids ambiguous commit
behavior. The validation is moved earlier to simplify the flow and
prevent unnecessary processing when the conflict occurs.
@estib-vega estib-vega force-pushed the mcp-fix-commit-everything branch from f97febe to 3fee43f Compare May 3, 2025 08:50
@vercel vercel bot temporarily deployed to Preview – gitbutler-components May 3, 2025 08:50 Inactive
@vercel vercel bot temporarily deployed to Preview – gitbutler-web May 3, 2025 08:50 Inactive
@estib-vega estib-vega merged commit 50fe22c into master May 3, 2025
20 checks passed
@estib-vega estib-vega deleted the mcp-fix-commit-everything branch May 3, 2025 08:54
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