<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4018/ini-section, branch main</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=main</id>
<link rel='self' href='https://git.shady.money/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2025-04-01T10:02:09Z</updated>
<entry>
<title>userdiff: add builtin driver for INI files</title>
<updated>2025-04-01T10:02:09Z</updated>
<author>
<name>Lucas Seiki Oshiro</name>
<email>lucasseikioshiro@gmail.com</email>
</author>
<published>2025-03-31T03:13:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=43380056df44aed6e074689dc8bc940f9dc6e2c8'/>
<id>urn:sha1:43380056df44aed6e074689dc8bc940f9dc6e2c8</id>
<content type='text'>
Add a new builtin driver for generic INI files (e. g. the gitconfig
files), where:

- the funcname regular expression matches section names, i. e. any
  string between brackets at the beginning of the line, with or without
  indentation;

- word_regex matches any word with one or more non-whitespace
  characters without checking if it is a valid variable name or value.

Also add tests for the new userdiff driver. These files define sections
and subsections, with and without indentation.

Helped-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Helped-by: D. Ben Knoble &lt;ben.knoble@gmail.com&gt;
Signed-off-by: Lucas Seiki Oshiro &lt;lucasseikioshiro@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
