From befe86392c767b62e4a6498cf951faae6f2c5ea3 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 29 May 2005 16:56:13 -0700 Subject: [PATCH] diff: consolidate various calls into diffcore. The three diff-* brothers had a sequence of calls into diffcore that were almost identical. Introduce a new diffcore_std() function that takes all the necessary arguments to consolidate it. This will make later enhancements and changing the order of diffcore application simpler. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diff.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'diff.h') diff --git a/diff.h b/diff.h index a07ee9f367..00e46b544d 100644 --- a/diff.h +++ b/diff.h @@ -43,6 +43,10 @@ extern void diffcore_pickaxe(const char *needle, int opts); extern void diffcore_pathspec(const char **pathspec); +extern void diffcore_std(const char **paths, + int detect_rename, int rename_score, + const char *pickaxe, int pickaxe_opts); + extern int diff_queue_is_empty(void); #define DIFF_FORMAT_HUMAN 0 -- cgit v1.2.3