From 5de4ec810492178095897f726bfaf879994aaf11 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Mon, 21 Oct 2013 15:36:38 -0700 Subject: Implement patience and minimal diff flags It seems that to implement these options, we just have to pass the appropriate flags through to the libxdiff code taken from core git. So let's do it (and add a test). --- include/git2/diff.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/git2/diff.h') diff --git a/include/git2/diff.h b/include/git2/diff.h index ed9f71355..505c3e793 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -175,8 +175,11 @@ typedef enum { */ GIT_DIFF_SHOW_UNMODIFIED = (1u << 26), - /** Use the "patience diff" algorithm (currently unimplemented) */ + /** Use the "patience diff" algorithm */ GIT_DIFF_PATIENCE = (1u << 28), + /** Take extra time to find minimal diff */ + GIT_DIFF_MINIMAL = (1 << 29), + } git_diff_option_t; /** -- cgit v1.2.1