diff options
| author | Lucas Seiki Oshiro <lucasseikioshiro@gmail.com> | 2025-03-31 00:13:09 -0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-01 03:02:09 -0700 |
| commit | 43380056df44aed6e074689dc8bc940f9dc6e2c8 (patch) | |
| tree | ba5279cfaa2f82baceadb3b65d7c20d002952ca0 /builtin/diff.c | |
| parent | 683c54c999c301c2cd6f715c411407c413b1d84e (diff) | |
userdiff: add builtin driver for INI files
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 <ps@pks.im>
Helped-by: D. Ben Knoble <ben.knoble@gmail.com>
Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff.c')
0 files changed, 0 insertions, 0 deletions
