git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSoC] Microproject: Add more builtin patterns for userdiff

From
KJKapil Jain <jkapil.cs@gmail.com>
Date
Mar 15, 2019, 09:09 UTC
Message-ID
<CAMknYEMgJ88zWsebxBqsLq8LUwYzg0vN3RpsWVpbqvncrd5dGQ@mail.gmail.com>
Hi,

for the microproject: creating diff function support for different languages. i wrote one for shell script, have tested it outside of git and it works fine.

query regarding accommodating the pattern in:
1) userdiff.c, it uses - #define PATTERNS(name, pattern, word_regex),
for defining patterns to locate functions.
what is the use of pattern and word_regex parameters ? i am guessing
that pattern parameter is the actual pattern to spot functions in a
file,
and word_regex is used to get function name. is that correct ?
please let me know.
Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “[GSoC] Microproject: Add more builtin patterns for userdiff”
  1. Kapil JainMar 15, 2019
  2. Ævar Arnfjörð BjarmasonMar 15, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.