[PATCH] Clean up diff_setup() to make it more extensible.
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index f15eb08ef7597ae7f538724f5814bd5fa87694d6..a11675551e8330a89ed2d56ed612d219ec71d4b8 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -492,9 +492,10 @@ static void run_diff(const char *name,
                run_external_diff(pgm, name, other, one, two, xfrm_msg);
 }
 
-void diff_setup(int reverse_diff_)
+void diff_setup(int flags)
 {
-       reverse_diff = reverse_diff_;
+       if (flags & DIFF_SETUP_REVERSE)
+               reverse_diff = 1;
 }
 
 struct diff_queue_struct diff_queued_diff;