You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.335,
ImprovementsSection of the release
What
When Claude Code runs git, it adds some environment variables, named values that a program can read when it starts. It now sets SHLVL to 1 alongside GIT_EDITOR=true, which it already set. SHLVL is a variable shells use to count how many shells are nested inside each other.
Why
This is a small change to the environment git runs in. It matters mainly if you have git hooks or scripts that read SHLVL.