Files
UnrealEngineUWP/Engine/Source/Developer/SourceControl/Public/SourceControlPreferences.h
michael noland feafa92f44 Editor: Added a project setting to allow specifying additional changelist tags for use when the editor auto-commits edits to collections
#jira UE-142041
#rb marc.audy
#preflight 62044d39a65a8a28462ff528
#lockdown julien.marchand

#ROBOMERGE-AUTHOR: michael.noland
#ROBOMERGE-SOURCE: CL 18935369 in //UE5/Release-5.0/... via CL 18935468 via CL 18935638
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18935681 by michael noland in ue5-main branch]
2022-02-10 10:05:44 -05:00

41 lines
1.5 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;
/** List of lines to add to any collection on checkin */
UPROPERTY(config, EditAnywhere, Category = SourceControl)
TArray<FString> CollectionChangelistTags;
/** Map of collection names and additional text to apply to changelist descriptions when checking them in */
UPROPERTY(config, EditAnywhere, Category = SourceControl, meta=(MultiLine=true))
TMap<FName, FString> SpecificCollectionChangelistTags;
};