Problem
While it's useful to ensure that any grammar changes are reflected in the parser, this becomes irritating in combination with the CLI build sha that is added to the parser, because most distros strip the git information when building (including cargo install!) so there is no way of locally producing the right parser header.
Possible solution
Use git diff | tail -n +1 to strip the first line from the diff (but then you can't rely on git-diff's exit code and would have to signal non-empty stripped diff by hand).