summaryrefslogtreecommitdiff
path: root/count-delta.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-24 12:09:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-24 17:47:05 -0700
commit85976974581060716311d6807b03a671cb71cbde (patch)
tree3e10a2cd51b3f118abea32bfbcf5873337bfe2ef /count-delta.h
parentbba0f401eea22ddc345df8aa32ac0ccb2c73dc15 (diff)
downloadgit-85976974581060716311d6807b03a671cb71cbde.tar.gz
[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 <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'count-delta.h')
-rw-r--r--count-delta.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/count-delta.h b/count-delta.h
new file mode 100644
index 0000000000..4e6b584f43
--- /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