Skip to content

reload

Reread submodule info from config, index, and HEAD.

Call this to reread cached submodule information for this submodule if you have reason to believe that it has changed.

Signature

ts
class Submodule {
  reload(
    force?: boolean | null | undefined,
    signal?: AbortSignal | null | undefined,
  ): Promise<void>;
}

Parameters

  • forcenull | boolean

    If this is true, then data will be reloaded even if it doesn't seem out of date.

  • signalnull | AbortSignal

    Optional AbortSignal to cancel the operation.

Released under the MIT License.