summaryrefslogtreecommitdiff
path: root/diffcore-pickaxe.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-31 20:44:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-31 21:30:28 (GMT)
commit382f013bc40452e4c24b8698217a14ff35f6dcec (patch)
tree0a6241cc2c7cf54232f6999c40417fb6877666bc /diffcore-pickaxe.c
parenta2c2cef0cd5210aa870e1d226d348a7ddd0277ff (diff)
downloadgit-382f013bc40452e4c24b8698217a14ff35f6dcec.zip
git-382f013bc40452e4c24b8698217a14ff35f6dcec.tar.gz
git-382f013bc40452e4c24b8698217a14ff35f6dcec.tar.bz2
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 <gitster@pobox.com>
Diffstat (limited to 'diffcore-pickaxe.c')
-rw-r--r--diffcore-pickaxe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index 929de15..13f61fb 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;