ISourceControlModule::CreateProvider

Creates and returns a unique source control provider that will be owned by the caller.

Unreal Engine C++ API Reference > Developer > SourceControl > ISourceControlModule

References

   
Module SourceControl
Header /Engine/Source/Developer/SourceControl/Public/ISourceControlModule.h
Include #include "ISourceControlModule.h"
[TUniquePtr](API\Runtime\Core\Templates\TUniquePtr)< [ISourceControlProvider](API\Developer\SourceControl\ISourceControlProvider) > CreateProvider
(
    const [FName](API\Runtime\Core\UObject\FName) & Name,
    const FStringView & OwningSystem,
    const [FSourceControlInitSettings](API\Developer\SourceControl\FSourceControlInitSettings) & InitialSettings
) const

Remarks

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. 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 Description
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.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library