get_git_diff now uses all registered extensions instead of filtering
by current language, so update tests to reflect the new behavior.
Co-authored-by: Sarthak Agarwal <undefined@users.noreply.github.com>
get_git_diff() hardcoded `.py` as the only valid file extension, causing
the auto-detect flow (no --file flag) to return 0 functions for Java,
JavaScript, and TypeScript projects. This broke the Claude Code plugin
integration where the hook runs `codeflash --subagent` without --file.
Now uses current_language_support().file_extensions to filter by the
active language's extensions dynamically.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Enhance the test suite for Git utilities by adding scenarios to check behavior when the HEAD is detached. This includes mocking the repository state to ensure proper handling in both attached and detached scenarios during branch push operations.