Subject: Re: [PATCH v2 1/4] userdiff: add javascript diff driver

From: Junio C Hamano <[email-masked]>
Date: Mon, 23 Jun 2025 11:09:35 -0700

"Derick W. de M. Frias" <[email-masked]> writes:

> --- a/userdiff.c
> +++ b/userdiff.c
> @@ -238,33 +238,43 @@ PATTERNS("java",
>  	 "|[-+*/<>%&^|=!]="
>  	 "|--|\\+\\+|<<=?|>>>?=?|&&|\\|\\|"),
>  PATTERNS("javascript",
> -     /* conventional named functions */
> -     "^[ \t]*(async[ \t]+)?function[ \t]*\\*?[ \t]*([$_a-zA-Z][$_a-zA-Z0-9]*)[ \t]*\\(.*$|"

Curious to see that anything needs to be removed from "javascript"
section, when we do not have any patterns for the language in the
file.  Which version of Git is this patch meant to apply to?