Files
UnrealEngineUWP/Engine/Source/Developer/SourceControl/Public/SourceControlPreferences.h
luc eygasier d6b8aa4536 Adds "Delete new files on revert" option for Source Control
Prevents Uncontrolled Changelist's UpdateStatus usage to pollute the error logs.

#jira UE-140095
#rb JeanFrancois.Dube
#preflight 61f44e47801201ab3894f020

#changelist validated

#ROBOMERGE-AUTHOR: luc.eygasier
#ROBOMERGE-SOURCE: CL 18796586 in //UE5/Release-5.0/... via CL 18797752 via CL 18798475
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18798602 by luc eygasier in ue5-main branch]
2022-01-31 17:03:09 -05:00

33 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DeveloperSettings.h"
#include "SourceControlPreferences.generated.h"
/** Settings for the Source Control Integration */
UCLASS(config = Editor, defaultconfig, meta = (DisplayName = "Source Control"))
class SOURCECONTROL_API USourceControlPreferences : public UDeveloperSettings
{
GENERATED_BODY()
public:
/** Helper to access easily Enable Validation Tag setting */
static bool IsValidationTagEnabled();
/** Helper to access easily Should Delete New Files On Revert setting */
static bool ShouldDeleteNewFilesOnRevert();
public:
/** If enabled, adds a tag in changelist descriptions when they are validated */
UPROPERTY(config, EditAnywhere, Category = SourceControl, meta = (ToolTip = "Adds validation tag to changelist description on submit."))
bool bEnableValidationTag = true;
/** If enabled, deletes new files when reverted. */
UPROPERTY(config, EditAnywhere, Category = SourceControl, meta = (ToolTip = "Deletes new files when reverted."))
bool bShouldDeleteNewFilesOnRevert = true;
};