Fix bug in processing diff -c output.
Handle No newline warning from git diff.