Skip to content

Conversation

@appleboy
Copy link
Owner

  • Add a check to ensure the current directory is a valid git repository and can execute git diff before running commands
  • Update command logic to pass context to the new check function
  • Implement CanExecuteGitDiff method to verify git repository status
  • Add a test suite for CanExecuteGitDiff to cover repository, non-repository, and subdirectory cases

closed #252

- Add a check to ensure the current directory is a valid git repository and can execute git diff before running commands
- Update command logic to pass context to the new check function
- Implement CanExecuteGitDiff method to verify git repository status
- Add a test suite for CanExecuteGitDiff to cover repository, non-repository, and subdirectory cases

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 5cee9bb into main Nov 28, 2025
23 checks passed
@appleboy appleboy deleted the git branch November 28, 2025 12:50
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.

2 participants