Nicer error messages in case saving an object to db goes wrong
[gitweb.git] / xdiff / xemit.c
index 154c26fdcdbef9095e254d7b469daf11c5653a04..07995ec33e9079cbbb579947e55fe46c1521d28f 100644 (file)
@@ -86,8 +86,7 @@ static void xdl_find_func(xdfile_t *xf, long i, char *buf, long sz, long *ll) {
                if (len > 0 &&
                    (isalpha((unsigned char)*rec) || /* identifier? */
                     *rec == '_' ||     /* also identifier? */
-                    *rec == '(' ||     /* lisp defun? */
-                    *rec == '#')) {    /* #define? */
+                    *rec == '$')) {    /* mysterious GNU diff's invention */
                        if (len > sz)
                                len = sz;
                        while (0 < len && isspace((unsigned char)rec[len - 1]))