-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathGitSourceControlSettings.h
More file actions
58 lines (41 loc) · 1.46 KB
/
Copy pathGitSourceControlSettings.h
File metadata and controls
58 lines (41 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) 2014-2020 Sebastien Rombauts (sebastien.rombauts@gmail.com)
//
// Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
// or copy at http://opensource.org/licenses/MIT)
#pragma once
#include "CoreMinimal.h"
class FGitSourceControlSettings
{
public:
/** Get the Git Binary Path */
const FString GetBinaryPath() const;
/** Get the Git Root Path */
const FString GetRepoPath() const;
/** Set the Git Binary Path */
bool SetBinaryPath(const FString& InString);
/** Set the Git Root Path */
bool SetRepoPath(const FString& InString);
/** Tell if using the Git LFS file Locking workflow */
bool IsUsingGitLfsLocking() const;
/** Configure the usage of Git LFS file Locking workflow */
bool SetUsingGitLfsLocking(const bool InUsingGitLfsLocking);
/** Get the username used by the Git LFS 2 File Locks server */
const FString GetLfsUserName() const;
/** Set the username used by the Git LFS 2 File Locks server */
bool SetLfsUserName(const FString& InString);
/** Load settings from ini file */
void LoadSettings();
/** Save settings to ini file */
void SaveSettings() const;
private:
/** A critical section for settings access */
mutable FCriticalSection CriticalSection;
/** Git binary path */
FString BinaryPath;
/** Git root path */
FString RepoPath;
/** Tells if using the Git LFS file Locking workflow */
bool bUsingGitLfsLocking;
/** Username used by the Git LFS 2 File Locks server */
FString LfsUserName;
};