Index: /trunk/rbtools/scripts/post-review
===================================================================
--- /trunk/rbtools/scripts/post-review	(revision 1955)
+++ /trunk/rbtools/scripts/post-review	(working copy)
@@ -1621,7 +1621,16 @@
 
         Returns a list of strings of diff lines.
         """
-        diff_cmd = ["diff", "-urNp", old_file, new_file]
+
+        # Default diff flags
+        diff_flags = "-urNp"
+
+        # Add the "-b" option to ignore whitespace when generating the diff
+        if options.ignore_whitespace:
+            diff_flags = diff_flags + "b"
+
+        diff_cmd = ["diff", diff_flags, old_file, new_file]
+
         # Diff returns "1" if differences were found.
         dl = execute(diff_cmd, extra_ignore_errors=(1,2)).splitlines(True)
 
@@ -2332,6 +2341,10 @@
     parser.add_option("-d", "--debug",
                       action="store_true", dest="debug", default=DEBUG,
                       help="display debug output")
+    parser.add_option("-w", "--ignore-whitespace",
+                      default=False, action="store_true",
+                      help="ignore whitespace when generating diffs "
+                           "(currently only supported by Perforce)")
 
     (globals()["options"], args) = parser.parse_args(args)
 
Index: /trunk/reviewboard/docs/manual/users/tools/post-review.txt
===================================================================
--- /trunk/reviewboard/docs/manual/users/tools/post-review.txt	(revision 1955)
+++ /trunk/reviewboard/docs/manual/users/tools/post-review.txt	(working copy)
@@ -436,6 +436,11 @@
    Specifies a revision or a range of revisions used to generate the diff.
    See :ref:`Posting Committed Code` for usage information.
 
+.. cmdoption:: -w, --ignore-whitespace
+
+   Ignores whitespace when generating diffs (Currently only supported for
+   Perforce)
+
 
 Field Defaults Options
 ----------------------
