Re: [PATCH] userdiff: funcname and word patterns for sh

2015-03-09 Thread Matthieu Moy
Adrien Schildknecht writes: > + "^([ \t]*(function[ \t]*)?[a-zA-Z_][a-zA-Z0-9_]*[ \t]*\\([ \t]*\\).*)$", I guess this should be 'function[ \t]+' (+, not *). -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a m

[PATCH] userdiff: funcname and word patterns for sh

2015-03-09 Thread Adrien Schildknecht
Add regexp based on the "Shell Command Language" specifications. Because of the lax syntax of sh, some corner cases may not be handled properly. Signed-off-by: Adrien Schildknecht --- Documentation/gitattributes.txt | 2 ++ t/t4018-diff-funcname.sh| 1 + t/t4018/sh-function

[GSoC][PATCH] userdiff: funcname and word patterns for sh

2015-03-09 Thread Adrien Schildknecht
Hi, I'm a french student from EPITA and I plan to apply for the GSoC. Adrien Schildknecht (1): userdiff: funcname and word patterns for sh Documentation/gitattributes.txt | 2 ++ t/t4018-diff-funcname.sh| 1 + t/t4018/sh-function | 4 t/t4018/sh-function-comment