summaryrefslogtreecommitdiff
path: root/xdiff/xdiffi.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-23 21:51:38 -0800
committerJunio C Hamano <gitster@pobox.com>2009-01-23 21:51:38 -0800
commit5dc1308562ab5991ecada68b06707709bea408c9 (patch)
tree321b8d7310c01d8b01584377d9aba448952a7384 /xdiff/xdiffi.c
parentf3d6073e02f8ee8dc6376b0262151dbbfbbdfe7d (diff)
parentcc545709253fe8440db2648cb5c771e5b126bdb5 (diff)
downloadgit-5dc1308562ab5991ecada68b06707709bea408c9.tar.gz
Merge branch 'js/patience-diff'
* js/patience-diff: bash completions: Add the --patience option Introduce the diff option '--patience' Implement the patience diff algorithm Conflicts: contrib/completion/git-completion.bash
Diffstat (limited to 'xdiff/xdiffi.c')
-rw-r--r--xdiff/xdiffi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index 9d0324a38c..3e97462bdd 100644
--- a/xdiff/xdiffi.c
+++ b/xdiff/xdiffi.c
@@ -329,6 +329,9 @@ int xdl_do_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp,
xdalgoenv_t xenv;
diffdata_t dd1, dd2;
+ if (xpp->flags & XDF_PATIENCE_DIFF)
+ return xdl_do_patience_diff(mf1, mf2, xpp, xe);
+
if (xdl_prepare_env(mf1, mf2, xpp, xe) < 0) {
return -1;