Navigation
API > API/Developer > API/Developer/SourceControl > API/Developer/SourceControl/ISourceControlModule
Description
Creates and returns a unique source control provider that will be owned by the caller. This allows subsystems to own their own source control connection in addition to the general connection used by the rest of the process. This could be to avoid the user changing settings that the subsystem needs, or so that it can open a connection with an entirely different source control type if required.
| Name | CreateProvider |
| Type | function |
| Header File | /Engine/Source/Developer/SourceControl/Public/ISourceControlModule.h |
| Include Path | #include "ISourceControlModule.h" |
TUniquePtr < ISourceControlProvider > CreateProvider
(
const FName & Name,
const FStringView & OwningSystem,
const FSourceControlInitSettings & InitialSettings
) const
A pointer to the newly created provider, this can be null if creating the name is invalid or if the provider type does not support unique connection creation.
Parameters
| Name | Remarks |
|---|---|
| Name | The name of the type of provider to create. |
| OwningSystem | The name of the system that will own the provider. This is used to customize things, like the config section that that providers settings will be saved to etc. |