From 38c6f78059c3060db6f94b24f4a90063a91090d2 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 21 May 2005 19:40:36 -0700 Subject: [PATCH] Prepare diffcore interface for diff-tree header supression. This does not actually supress the extra headers when pickaxe is used, but prepares enough support for diff-tree to implement it. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diffcore-pickaxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'diffcore-pickaxe.c') diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c index ee22e36abc..9b9d0b73f2 100644 --- a/diffcore-pickaxe.c +++ b/diffcore-pickaxe.c @@ -21,8 +21,9 @@ static int contains(struct diff_filespec *one, return 0; } -void diff_pickaxe(struct diff_queue_struct *q, const char *needle) +void diff_pickaxe(const char *needle) { + struct diff_queue_struct *q = &diff_queued_diff; unsigned long len = strlen(needle); int i; struct diff_queue_struct outq; -- cgit v1.2.3