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.
Submodule name and URL rules mirror Git’s submodule-config.c (check_submodule_name,
check_submodule_url).
Structs§
- DotFsck
Tracker - Tracks
.gitmodules/.gitattributesblob OIDs discovered in trees (Gitfsck_optionsoidsets).
Enums§
- DotFsck
Issue - Problems reported while walking trees / blobs for
.gitmodules/.gitattributesfsck.
Constants§
- ATTR_
MAX_ FILE_ SIZE - Max
.gitattributesblob size for fsck (attr.h). - ATTR_
MAX_ LINE_ LENGTH - Max
.gitattributesline length checked by Gitfsck(attr.h).
Functions§
- check_
submodule_ name - Returns
truewhennameis allowed as a submodule logical name (Gitcheck_submodule_name). - check_
submodule_ url - Returns
truewhenurlis safe for.gitmodules(Gitcheck_submodule_url). - fsck_
dot_ special_ object - Content checks for OIDs registered as
.gitmodules/.gitattributestargets (Gitfsck_blob/fsck_blobs). - fsck_
dot_ special_ tree_ pass - Symlink and registration for one tree (Git
fsck_treeentry loop). - looks_
like_ command_ line_ option - Returns
truewhensis non-empty and starts with-(Gitlooks_like_command_line_option). - oids_
from_ copied_ object_ paths - Parse
objects/ab/cdef…loose paths into OIDs; for.idxfiles load all contained OIDs. - tree_
entry_ is_ gitattributes_ blob - True for a tree entry name that should be treated as
.gitattributesfor fsck (blob only). - tree_
entry_ is_ gitmodules_ blob - True when
namenames a.gitmodulesfile (HFS / NTFS spellings), not a symlink. - validate_
gitmodules_ blob_ line - Validate a
.gitmodulesblob (Gitfsck_gitmodules_fn). Returnsobject hex: msgorNone. - verify_
gitmodules_ for_ commit - Validate every
.gitmodulesblob reachable fromcommit_oid. ReturnsSome(hex: msg)on error. - verify_
packed_ dot_ special - Run
.gitmodules/.gitattributesfsck on a fully resolved pack object map (blob/tree bytes). - write_
gitmodules_ cli_ option_ warnings - Write Git-style warnings for submodule path/url values that look like CLI options.