I have a medium sized Java file. Every time I make changes to one of my files, BuildTable.java, Git reports this as a massive change, even if it is only a line or two. BuildTable.java is about 200 lines, and a change in this commit changed only one line.
git-diff does this:
--- a/src/BuildTable.java +++ b/src/BuildTable.java @@ -1 +1 @@ -import java.io.FileNotFoundException;^Mimport java.io.FileReader;^Mimport java.io.InputStreamReader;^Mimport java.io.PushbackReader;^Mimport java.util.ArrayList;^Mimport \ No newline at end of file +import java.io.FileNotFoundException;^Mimport java.io.FileReader;^Mimport java.io.InputStreamReader;^Mimport java.io.PushbackReader;^Mimport java.util.ArrayList;^Mimport \ No newline at end of file
After running git -commit -a
Created commit fe43985: better error notifications 3 files changed, 54 insertions(+), 50 deletions(-) rewrite src/BuildTable.java (78%)
Is git seeing this file as binary or something else? This is problem? If so, how to fix it?
git diff
Paul Wicks Oct 28 '08 at 20:01 2008-10-28 20:01
source share