mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
WebCommit: Empty diff display if there's a binary file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user