[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 <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
ddafa7e933
commit
befe86392c
4
diff.h
4
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
|
||||
|
Reference in New Issue
Block a user