Files
git/builtin
Jacob Keller 059268fd05 dir: move starts_with_dot(_dot)_slash to dir.h
Both submodule--helper.c and submodule-config.c have an implementation
of starts_with_dot_slash and starts_with_dot_dot_slash. The dir.h header
has starts_with_dot(_dot)_slash_native, which sets PATH_MATCH_NATIVE.

Move the helpers to dir.h as static inlines. I thought about renaming
them to postfix with _platform but that felt too long and ugly. On the
other hand it might be slightly confusing with _native.

This simplifies a submodule refactor which wants to use the helpers
earlier in the submodule--helper.c file.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-06-23 16:38:56 -07:00
..
2025-05-27 13:59:09 -07:00
2025-05-19 16:02:46 -07:00
2025-05-16 12:00:33 -07:00
2024-12-13 07:33:36 -08:00
2025-05-12 14:22:49 -07:00
2025-05-15 13:46:44 -07:00
2025-01-28 13:02:22 -08:00
2024-12-18 10:44:30 -08:00
2025-05-12 14:22:49 -07:00
2024-12-18 10:44:31 -08:00
2025-05-08 12:36:32 -07:00
2025-02-04 09:51:41 -08:00
2025-03-29 01:04:40 -07:00
2025-04-24 17:25:34 -07:00
2024-12-18 10:44:30 -08:00
2025-01-28 13:02:22 -08:00