Skip to content

feat: add git status indicators for worktrees #31

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ryo33
Copy link

@ryo33 ryo33 commented Jun 24, 2025

Closes #11

Add real-time git status monitoring to display file changes and branch relationships:

  • Show files added/deleted counts with color coding
  • Display ahead/behind counts relative to parent branch
  • Store parent branch in worktree config for tracking
  • Add concurrency limiting for git operations
  • Include comprehensive tests for all new functionality
image

ryo33 and others added 2 commits June 24, 2025 11:42
Add real-time git status monitoring to display file changes and branch relationships:
- Show files added/deleted counts with color coding
- Display ahead/behind counts relative to parent branch
- Store parent branch in worktree config for tracking
- Add concurrency limiting for git operations
- Include comprehensive tests for all new functionality

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

Co-Authored-By: Claude <[email protected]>
src/cli.tsx Outdated
Comment on lines 33 to 45
if (!isWorktreeConfigEnabled()) {
console.error(`Error: ccmanager requires Git worktree config to be enabled.

This allows ccmanager to store branch-specific configuration for each worktree.

To enable it, run:
git config extensions.worktreeConfig true

After enabling, restart ccmanager.

Note: This is a one-time setup per repository.`);
process.exit(1);
}
Copy link
Owner

Choose a reason for hiding this comment

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

This feature should be optional.
Please ensure that ccmanager itself works even when worktreeConfig is disabled.

Copy link
Author

Choose a reason for hiding this comment

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

I've made it optional in e1f0c9e
It now falls back to the default branch fetched from a remote, performed in the existing code.

Allows ccmanager to run without git worktree config enabled, with reduced functionality for parent branch tracking.

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

Co-Authored-By: Claude <[email protected]>
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.

[Feature Request] Show git status on the right side of each worktree
2 participants