Skip to main content

submodule_gitlinks_touched_in_range

Function submodule_gitlinks_touched_in_range 

Source
pub fn submodule_gitlinks_touched_in_range(
    repo: &Repository,
    excl: Option<ObjectId>,
    incl: ObjectId,
) -> Result<bool>
Expand description

True when walking superproject commits in (excl..incl] introduces or changes a submodule gitlink (matches Git’s submodule_touches_in_range in submodule.c).

Used by git pull --rebase --recurse-submodules to reject rebases when local commits already recorded submodule pointer changes.