Navigation
API > API/Developer > API/Developer/SourceControl > API/Developer/SourceControl/USourceControlHelpers
Description
Use currently set source control provider to check out file or mark it for add.
Blocks until action is complete.
| Name | CheckOutOrAddFile |
| 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 CheckOutOrAddFile
(
const FString & InFile,
bool bSilent
)
true if succeeded, false if failed and can call LastErrorMsg() for more info.
Parameters
| Name | Remarks |
|---|---|
| InFile | The file to check out/add - 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. |