From: Johannes Sixt <j6t@kdbg.org>
To: Dhruv Arora <a_dhruv@outlook.com>
Cc: Dhruv Arora via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH 0/2] [GSoC] userdiff: adding typescript pattern
Date: Sun, 29 Mar 2026 11:31:43 +0200 [thread overview]
Message-ID: <08f1c2b1-5f2c-40e9-ba87-f45cae6af541@kdbg.org> (raw)
In-Reply-To: <pull.2251.git.git.1774734004.gitgitgadget@gmail.com>
Am 28.03.26 um 22:40 schrieb Dhruv Arora via GitGitGadget:
>
> Description
> ===========
>
> * Add builtin userdiff pattern for TypeScript files. Recognizes function
> declarations, class definitions, arrow functions, and method definitions.
>
> * Handles common modifiers like export, async, static, etc
>
> * Added tests for the typescript pattern in userdiff.
>
> Dhruv Arora (2):
> userdiff: adding typescript pattern
> fix(userdiff): sorted pattern and tests
>
> t/t4018/typescript-class-method | 7 +++++++
> t/t4018/typescript-export-default-class | 7 +++++++
> t/t4018/typescript-export-function | 7 +++++++
> userdiff.c | 15 +++++++++++++++
> 4 files changed, 36 insertions(+)
> create mode 100644 t/t4018/typescript-class-method
> create mode 100644 t/t4018/typescript-export-default-class
> create mode 100644 t/t4018/typescript-export-function
>
>
> base-commit: ce74208c2fa13943fffa58f168ac27a76d0eb789
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2251%2FDhruv-0-Arora%2Fuserdiff%2Ftypescript-pattern-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2251/Dhruv-0-Arora/userdiff/typescript-pattern-v1
> Pull-Request: https://github.com/git/git/pull/2251
Javascript and Typescript are related languages, if I am not mistaken.
It would be appreciated if the new language driver could be used for
both. Then the driver's name should be the superset language and the
documentation (missing, BTW) should mention that the driver can be used
for both languages.
We have had a number of submissions for Javascript or Typescript drivers
in the past, but none of them were followed through to be integrated.
Typescript:
https://lore.kernel.org/git/20240404163827.5855-1-utsavp0213@gmail.com/
https://lore.kernel.org/git/pull.1746.git.git.1721061218993.gitgitgadget@gmail.com/
Javascript:
https://lore.kernel.org/git/20240301074048.188835-1-sergiusnyah@gmail.com/
https://lore.kernel.org/git/20220403132508.28196-1-a97410985new@gmail.com/
https://lore.kernel.org/git/20250604094100.80598-1-derick.william.moraes@gmail.com/
Please review these submission and the responses that they received.
Perhaps you can find inspiration for improvement from them.
-- Hannes
next prev parent reply other threads:[~2026-03-29 9:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-28 21:40 [PATCH 0/2] [GSoC] userdiff: adding typescript pattern Dhruv Arora via GitGitGadget
2026-03-28 21:40 ` [PATCH 1/2] " Dhruv Arora via GitGitGadget
2026-03-28 21:40 ` [PATCH 2/2] fix(userdiff): sorted pattern and tests Dhruv Arora via GitGitGadget
2026-03-29 0:42 ` [PATCH 0/2] [GSoC] userdiff: adding typescript pattern Junio C Hamano
2026-03-29 9:31 ` Johannes Sixt [this message]
2026-03-29 14:39 ` Spelling JavaScript (was: Re: [PATCH 0/2] [GSoC] userdiff: adding typescript pattern) Ben Knoble
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08f1c2b1-5f2c-40e9-ba87-f45cae6af541@kdbg.org \
--to=j6t@kdbg.org \
--cc=a_dhruv@outlook.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox