fuzzystrmatch_fix.patch
text/x-patch
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
| File | + | − |
|---|---|---|
| contrib/fuzzystrmatch/levenshtein.c | 1 | 0 |
| contrib/fuzzystrmatch/Makefile | 3 | 0 |
*** a/contrib/fuzzystrmatch/Makefile --- b/contrib/fuzzystrmatch/Makefile *************** *** 16,18 **** top_builddir = ../.. --- 16,21 ---- include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif + + fuzzystrmatch.o: fuzzystrmatch.c levenshtein.c + *** a/contrib/fuzzystrmatch/levenshtein.c --- b/contrib/fuzzystrmatch/levenshtein.c *************** *** 377,383 **** levenshtein_internal(text *s, text *t, prev[start_column] = max_d + 1; curr[start_column] = max_d + 1; if (start_column != 0) ! s_data += s_char_len != NULL ? s_char_len[i - 1] : 1; start_column++; } --- 377,383 ---- prev[start_column] = max_d + 1; curr[start_column] = max_d + 1; if (start_column != 0) ! s_data += s_char_len != NULL ? s_char_len[start_column - 1] : 1; start_column++; }