summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fc4a7e)
raw | patch | inline | side by side (parent: 6fc4a7e)
author | Samuel Tardieu <sam@rfc1149.net> | |
Tue, 18 Nov 2008 18:53:26 +0000 (19:53 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Nov 2008 03:23:33 +0000 (19:23 -0800) |
Without this change, "git tags" will not suggest "git tag"
(it will only suggest "git status"), and "git statusx" will
not suggest anything.
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
(it will only suggest "git status"), and "git statusx" will
not suggest anything.
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
levenshtein.c | patch | blob | history |
diff --git a/levenshtein.c b/levenshtein.c
index db52f2c205029229c7eedc8fbc042d3945436803..98fea723d4b70422ca18e3fab4c65f4c1f9f3744 100644 (file)
--- a/levenshtein.c
+++ b/levenshtein.c
row2[j + 1] > row0[j - 1] + w)
row2[j + 1] = row0[j - 1] + w;
/* deletion */
- if (j + 1 < len2 && row2[j + 1] > row1[j + 1] + d)
+ if (row2[j + 1] > row1[j + 1] + d)
row2[j + 1] = row1[j + 1] + d;
/* insertion */
if (row2[j + 1] > row2[j] + a)