diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-17 17:36:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-17 17:36:06 -0700 |
commit | ca01600306863ecfa8bbef769b8e1386cb149785 (patch) | |
tree | 30507da396d4a19240aed15c47a2f4356dd3987d /xdiff/xutils.h | |
parent | 2f5cb6aa1e2eb7b12df85d5ddc4d8bc79be47b3d (diff) | |
parent | 6486a84cb8e69ddf03b2139db3d968400e05f5b3 (diff) | |
download | git-ca01600306863ecfa8bbef769b8e1386cb149785.tar.gz git-ca01600306863ecfa8bbef769b8e1386cb149785.tar.xz |
Merge branch 'rc/histogram-diff'
* rc/histogram-diff:
xdiff/xhistogram: drop need for additional variable
xdiff/xhistogram: rely on xdl_trim_ends()
xdiff/xhistogram: rework handling of recursed results
xdiff: do away with xdl_mmfile_next()
Make test number unique
xdiff/xprepare: use a smaller sample size for histogram diff
xdiff/xprepare: skip classification
teach --histogram to diff
t4033-diff-patience: factor out tests
xdiff/xpatience: factor out fall-back-diff function
xdiff/xprepare: refactor abort cleanups
xdiff/xprepare: use memset()
Diffstat (limited to 'xdiff/xutils.h')
-rw-r--r-- | xdiff/xutils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xdiff/xutils.h b/xdiff/xutils.h index d5de8292e..714719a89 100644 --- a/xdiff/xutils.h +++ b/xdiff/xutils.h @@ -33,7 +33,7 @@ void xdl_cha_free(chastore_t *cha); void *xdl_cha_alloc(chastore_t *cha); void *xdl_cha_first(chastore_t *cha); void *xdl_cha_next(chastore_t *cha); -long xdl_guess_lines(mmfile_t *mf); +long xdl_guess_lines(mmfile_t *mf, long sample); int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags); unsigned long xdl_hash_record(char const **data, char const *top, long flags); unsigned int xdl_hashbits(unsigned int size); @@ -41,6 +41,8 @@ int xdl_num_out(char *out, long val); long xdl_atol(char const *str, char const **next); int xdl_emit_hunk_hdr(long s1, long c1, long s2, long c2, const char *func, long funclen, xdemitcb_t *ecb); +int xdl_fall_back_diff(xdfenv_t *diff_env, xpparam_t const *xpp, + int line1, int count1, int line2, int count2); |