Navigation
API > API/Developer > API/Developer/SourceControl > API/Developer/SourceControl/USourceControlHelpers
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool RevertUnchangedFiles
(
const TArray< FString >& InFiles, |
Use currently set source control provider to revert files provided no changes have been made. | SourceControlHelpers.h |
|
static void RevertUnchangedFiles
(
ISourceControlProvider& InProvider, |
Helper function to get a list of files that are unchanged & revert them. | SourceControlHelpers.h |
RevertUnchangedFiles(const TArray< FString > &, bool)
Description
Use currently set source control provider to revert files provided no changes have been made.
Blocks until action is complete.
| Name | RevertUnchangedFiles |
| Type | function |
| Header File | /Engine/Source/Developer/SourceControl/Public/SourceControlHelpers.h |
| Include Path | #include "SourceControlHelpers.h" |
| Source | /Engine/Source/Developer/SourceControl/Private/SourceControlHelpers.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Editor Revision Control Helpers",
Meta=(Keywords="Source Control"))
static bool RevertUnchangedFiles
(
const TArray < FString > & InFiles,
bool bSilent
)
true if succeeded, false if failed and can call LastErrorMsg() for more info.
Parameters
| Name | Remarks |
|---|---|
| InFiles | Files to check out - can be either fully qualified path, relative path, long package name, asset path or export text path (often stored on clipboard) |
| bSilent | if false (default) then write out any error info to the Log. Any error text can be retrieved by LastErrorMsg() regardless. |
RevertUnchangedFiles(ISourceControlProvider &, const TArray< FString > &)
Description
Helper function to get a list of files that are unchanged & revert them. This runs synchronous commands.
Older C++ only version of RevertFiles(Files, false).
| Name | RevertUnchangedFiles |
| Type | function |
| Header File | /Engine/Source/Developer/SourceControl/Public/SourceControlHelpers.h |
| Include Path | #include "SourceControlHelpers.h" |
| Source | /Engine/Source/Developer/SourceControl/Private/SourceControlHelpers.cpp |
static void RevertUnchangedFiles
(
ISourceControlProvider & InProvider,
const TArray < FString > & InFiles
)
Parameters
| Name | Remarks |
|---|---|
| InProvider | The provider to use |
| InFiles | The files to operate on |