WebCommit: Empty diff display if there's a binary file

This commit is contained in:
Pieter de Bie
2009-01-25 15:02:17 +00:00
parent 2c29f5bda2
commit f16febf0e8
+1
View File
@@ -5,6 +5,7 @@ var showNewFile = function(file)
var contents = IndexController.unstagedChangesForFile_(file);
if (!contents) {
notify("Can not display changes (Binary file?)", -1);
diff.innerHTML = "";
return;
}