From 382f013bc40452e4c24b8698217a14ff35f6dcec Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 31 Aug 2010 13:44:39 -0700 Subject: diff: pass the entire diff-options to diffcore_pickaxe() That would make it easier to give enhanced feature to the pickaxe transformation. Signed-off-by: Junio C Hamano --- diffcore-pickaxe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'diffcore-pickaxe.c') diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c index 929de15aa9..13f61fbb08 100644 --- a/diffcore-pickaxe.c +++ b/diffcore-pickaxe.c @@ -48,8 +48,10 @@ static unsigned int contains(struct diff_filespec *one, return cnt; } -void diffcore_pickaxe(const char *needle, int opts) +void diffcore_pickaxe(struct diff_options *o) { + const char *needle = o->pickaxe; + int opts = o->pickaxe_opts; struct diff_queue_struct *q = &diff_queued_diff; unsigned long len = strlen(needle); int i, has_changes; -- cgit v1.2.3