diff options
author | Junio C Hamano <junkio@cox.net> | 2005-05-27 15:54:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-29 11:17:43 -0700 |
commit | 19feebc8c3ca7bd40f2f32f4f856b68b9a02870c (patch) | |
tree | e536ae939c90a8ce9c1278f6134ce5b6d1a72774 /diff.c | |
parent | 09d9d1a648ecff1dd914224b3ee616b0486ec525 (diff) | |
download | git-19feebc8c3ca7bd40f2f32f4f856b68b9a02870c.tar.gz |
[PATCH] Clean up diff_setup() to make it more extensible.
This changes the argument of diff_setup() from an integer that
says if we are feeding reversed diff to a bitmask, so that later
global options can be added more easily.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |