Skip to content

Add command to format all files changed in a feature branch#52

Open
taimoorgit wants to merge 4 commits intojbockle:masterfrom
taimoorgit:ta/add-features
Open

Add command to format all files changed in a feature branch#52
taimoorgit wants to merge 4 commits intojbockle:masterfrom
taimoorgit:ta/add-features

Conversation

@taimoorgit
Copy link
Copy Markdown

@taimoorgit taimoorgit commented Aug 1, 2025

Adds a new command to format only files that have changed compared to a target branch.

Use case:
Format just the files you've modified in your feature branch before committing.

What it does:

  • Prompts for target branch name (e.g., main, master)
  • Remembers your last used branch for convenience
  • Uses git diff --name-only to find changed files
  • Skips git-ignored files automatically
  • Formats only the files that differ from the target branch

New command: "Start Format Files: Changed in Branch"

taimoorgit and others added 3 commits August 1, 2025 15:17
- Add new "Format Files: Changed in Branch" command
- Implement branch comparison using git diff --name-only
- Add request-branch prompt with memory of last used branch
- Extend git utilities with getChangedFiles method
- Update package.json with new command registration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add formatFiles.lastBranch to VS Code configuration schema
- Enables branch name memory functionality to work properly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@taimoorgit taimoorgit changed the title add option to format all files in current branch not in target branch Add command to format all files changed in a feature branch Aug 1, 2025
@taimoorgit taimoorgit marked this pull request as ready for review August 1, 2025 20:44
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