[Bug] Claude Code passes invalid `--no-stat` flag to `git show` command

Open 💬 15 comments Opened Dec 4, 2025 by eepp

Bug Description

In Claude Code 2.0.58, please know that Claude often tries git show with --no-stat, but there's no such option:

● Bash(git show HEAD --no-stat)
⎿  Error: Exit code 128
fatal: unrecognized argument: --no-stat

This can waste precious context.

Maybe this could be part of the system prompt or some tool config?

Just a suggestion.

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.0.58
  • Feedback ID: 83675796-99ee-4502-aeeb-cd20505f0696

Errors

[]

View original on GitHub ↗

This issue has 15 comments on GitHub. Read the full discussion on GitHub ↗