Skip to content

submoduleSetUpdate

Set the update rule for the submodule in the configuration

This setting won't affect any existing instances.

Signature

ts
class Repository {
  submoduleSetUpdate(name: string, update: SubmoduleUpdate): void;
}

Parameters

  • namerequired · string

    The name of the submodule.

  • updaterequired · SubmoduleUpdate

    The new value to use.

    Submodule update values

    These values represent settings for the submodule.$name.update
    configuration value which says how to handle git submodule update
    for this submodule. The value is usually set in the ".gitmodules"
    file and copied to ".git/config" when the submodule is initialized.

Released under the MIT License.