On 07.10.2010 11:32, Jonathan Nieder wrote: > Try this: > > git init test > cd test > printf 'a\nb\nc\n'> file > git add -A > echo hello>> file > echo>> file > git diff --check > > As you can see, it still returns line 4, which is the beginning of the > hunk that adds the blank line. > > A change to make it print the line number of the blank line itself > does not sound so bad, though. You're right. I think, the attached patch corrects the issue.