Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 68571ef

Browse files
donokudaStanleyGoldman
authored andcommitted
Stub out dialog action
1 parent d938c4f commit 68571ef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/HistoryView.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,14 @@ private void CullHistory()
550550

551551
private void RevertCommit()
552552
{
553-
Debug.Log("Hello from RevertCommit();");
553+
var commitSummary = "An awesome commit title";
554+
var dialogTitle = "Revert commit";
555+
var dialogBody = "Are you sure you want to revert the following commit:\n" + "\"" + commitSummary + "\"";
556+
557+
if (EditorUtility.DisplayDialog(dialogTitle, dialogBody, "Revert", "Cancel"))
558+
{
559+
Debug.Log("(Pretend a commit was reverted)");
560+
}
554561
}
555562

556563
private bool HistoryEntry(GitLogEntry entry, LogEntryState state, bool selected)

0 commit comments

Comments
 (0)