diff options
Diffstat (limited to 'rbtools/postreview.py')
-rwxr-xr-x | rbtools/postreview.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rbtools/postreview.py b/rbtools/postreview.py index 567e891..5045df8 100755 --- a/rbtools/postreview.py +++ b/rbtools/postreview.py @@ -2138,6 +2138,13 @@ class GitClient(SCMClient): else: # We already printed the "--- " line. diff_data += "+++ %s\t(working copy)\n" % filename + elif line.startswith("new file mode"): + # Filter this out. + pass + elif line.startswith("Binary files "): + # Add the following so that we know binary files were added/changed + diff_data += "Cannot display: file marked as a binary type.\n" + diff_data += "svn:mime-type = application/octet-stream\n" else: diff_data += line |