You can clone with
In some rare cases, the "Press Enter to jump" feature skips a diff header. You may try this in the tig repository:
echo bar >> NEWS
git add .
git commit -am baz
In the diff view, pressing Enter on "NEWS" jumps to the FOO diff header.
That's because the diff stat does not show new empty files while tig wants to jump to the first diff header.
Verified. The question is how to figure out when a diff has not been listed in the diffstat taking into account binary diffs etc.
An alternative would be to use git show -p --numstat, which displays an easy to parse stat for every file.
But to answer your question, the only option I have in mind is: number of LINE_DIFF_STAT != number of LINE_DIFF_HEADER.
git show -p --numstat
It looks like this was fixed in git version 220.127.116.11. From the release notes:
* We failed to mention a file without any content change but whose
permission bit was modified, or (worse yet) a new file without any
content in the "git diff --stat" output.