10class GitWorkspaceWindow
22 int32_t mSelectedCommitIndex = -1;
23 std::string mSelectedCommitOid;
24 std::string mSelectedFilePath;
25 int32_t mActiveSidebarSection = 0;
26 char mHistoryFilterText[256] = {0};
27 bool mShowAllBranches =
false;
28 int32_t mHistoryPageCount = 100;
32 void DrawSidebar(
float width,
float height);
33 void DrawMainArea(
float width,
float height);
34 void DrawHistoryView(
float width,
float height);
35 void DrawStatusView(
float width,
float height);
36 void DrawDiffInspector(
float width,
float height);
37 void DrawCommitComposer(
float width,
float height);
38 void DrawOutputLog(
float width,
float height);
41 char mCommitSummary[256] = {0};
42 char mCommitBody[4096] = {0};
43 bool mAmendCommit =
false;
46 struct LogEntry { std::string mText; int32_t mLevel; };
47 std::vector<LogEntry> mLogEntries;
48 bool mLogAutoScroll =
true;
51 GitFileDiff mCurrentDiff;
52 bool mDiffDirty =
true;
55 bool mCheckoutChoiceOpen =
false;
56 std::string mCheckoutChoiceOid;
57 std::vector<std::string> mCheckoutChoiceBranches;
58 int32_t mCheckoutChoiceSelected = 0;
60 void DrawCheckoutChoicePopup();
63GitWorkspaceWindow* GetGitWorkspaceWindow();