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>
This commit is contained in:
Junio C Hamano
2010-08-31 13:44:39 -07:00
parent a2c2cef0cd
commit 382f013bc4
3 changed files with 5 additions and 3 deletions

View File

@ -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;