Skip to main content

Module gitmodules

Module gitmodules 

Source
Expand description

.gitmodules validation (Git fsck / submodule-config parity).

Submodule path and url values must not look like command-line options (non-empty and starting with -). See Git’s looks_like_command_line_option in path.c.

Functions§

looks_like_command_line_option
Returns true when s is non-empty and starts with - (Git looks_like_command_line_option).
oids_from_copied_object_paths
Parse objects/ab/cdef… loose paths into OIDs; for .idx files load all contained OIDs.
tree_entry_is_gitmodules_blob
True when name names a .gitmodules file (HFS / NTFS spellings), not a symlink.
validate_gitmodules_blob_line
Validate a .gitmodules blob (Git fsck_gitmodules_fn). Returns object hex: msg or None.
verify_gitmodules_for_commit
Validate every .gitmodules blob reachable from commit_oid. Returns Some(hex: msg) on error.
write_gitmodules_cli_option_warnings
Write Git-style warnings for submodule path/url values that look like CLI options.