From 85976974581060716311d6807b03a671cb71cbde Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 24 May 2005 12:09:32 -0700 Subject: [PATCH] Update rename/copy similarity estimator. The second round similarity estimator simply used the size of the xdelta itself to estimate the extent of damage. This patch keeps that logic to detect big insertions to terminate the check early, but otherwise looks at the generated delta in order to estimate the extent of edit more accurately. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- count-delta.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 count-delta.h (limited to 'count-delta.h') diff --git a/count-delta.h b/count-delta.h new file mode 100644 index 000000000..4e6b584f4 --- /dev/null +++ b/count-delta.h @@ -0,0 +1,9 @@ +/* + * Copyright (C) 2005 Junio C Hamano + */ +#ifndef COUNT_DELTA_H +#define COUNT_DELTA_H + +unsigned long count_delta(void *, unsigned long); + +#endif -- cgit v1.2.1