Polyphase Game Engine
Loading...
Searching...
No Matches
GitCreateBranchDialog.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include <string>
6
7class GitCreateBranchDialog
8{
9public:
10 void Open();
11 void Open(const std::string& sourceOid);
12 void Draw();
13
14private:
15 bool mIsOpen = false;
16 bool mJustOpened = false;
17
18 char mBranchName[128] = {0};
19 bool mCheckoutAfterCreate = true;
20
21 // Source ref selection: 0 = HEAD, 1 = specific commit
22 int32_t mSourceRefMode = 0;
23 std::string mSelectedSourceOid;
24
25 // Error display
26 std::string mErrorMessage;
27 bool mBranchExists = false;
28};
29
30GitCreateBranchDialog* GetGitCreateBranchDialog();
31
32#endif