Skip to content

Add builtin patterns for userdiff in JavaScript, as Microproject.

Sergius Nyah git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Subject: [GSOC][RFC PATCH 1/2] Add builtin patterns for JavaScript function detection in userdiff.userdiff.c+15 -22 replies
2/2Subject:[GSOC] [RFC PATCH 2/2] Add test for JavaScript function detection in Git diffst/t4018-diff-funcname.sh+23 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [GSOC][PATCH 0/2] Add builtin patterns for userdiff in JavaScript, as Microproject.

I would like to apologize for the numerous irrelevant emails that have been sent to this mailing list recently. They were the result of a configuration issue with my setup, which caused my patches to be sent from a noreply GitHub address. This led to a series of failed delivery attempts and unnecessary emails.

Firstly, I'm so sorry for the delay between selecting the Microproject and sending the patch series. Learning about regular expressions took me a bit longer than I expected, but it was all worth it. I'm very grateful for the opportunity to work on this project and I'm looking forward to contributing more to Git.

This patch series adds builtin patterns for JavaScript function detection in userdiff, as
my Microproject for GSOC. The first patch adds a regular expression for detecting JavaScript functions in Git diffs while the second adds a test for JavaScript function detection in Git diffs. This new pattern looks for lines that start with optional whitespace, followed by 'function' and any characters (for function declarations), or valid JavaScript identifiers, equals sign '=', 'function' keyword and any characters (for function expressions). It also considers functions defined inside blocks with '{...}'.

 t/t4018-diff-funcname.sh | 25 +++++++++++++++++++++++--
 userdiff.c               | 17 +++++++++++++++--
 2 files changed, 38 insertions(+), 4 deletions(-)

base-commit: c5b454771e6b086f60c7f1f139025f174bcedac9

Signature · 5 lines
2.43.2

I would greatly appreciate any feedback on the patch series.
Best, 
Sergius.