Navigation
API > API/Developer > API/Developer/SourceControl
Helper class that ensures FSourceControl is properly initialized and shutdown by calling Init/Close in its constructor/destructor respectively.
| Name | FScopedSourceControl |
| Type | class |
| Header File | /Engine/Source/Developer/SourceControl/Public/SourceControlHelpers.h |
| Include Path | #include "SourceControlHelpers.h" |
Syntax
class FScopedSourceControl
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScopedSourceControl() |
Constructor; Initializes Source Control Provider | SourceControlHelpers.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FScopedSourceControl() |
Destructor; Closes Source Control Provider | SourceControlHelpers.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitSourceControl | bool | SourceControlHelpers.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ISourceControlProvider & GetProvider() |
Get the provider we are using | SourceControlHelpers.h |