diff options
author | Junio C Hamano <junkio@cox.net> | 2005-05-24 12:09:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-24 17:47:05 -0700 |
commit | 85976974581060716311d6807b03a671cb71cbde (patch) | |
tree | 3e10a2cd51b3f118abea32bfbcf5873337bfe2ef /count-delta.h | |
parent | bba0f401eea22ddc345df8aa32ac0ccb2c73dc15 (diff) | |
download | git-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.h | 9 |
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 |