private void DoCommit()
{
if ((this.commitMessage == string.Empty) && !EditorUtility.DisplayDialog("Commit without description", "Are you sure you want to commit with empty commit description message?", "Commit", "Cancel"))
{
GUIUtility.ExitGUI();
}
bool refreshCommit = AssetServer.GetRefreshCommit();
ASCommitWindow window = new ASCommitWindow(this, ASCommitWindow.GetParentViewSelectedItems(this.pv, true, false).ToArray());
window.InitiateReinit();
if ((refreshCommit || window.lastTransferMovedDependencies) && ((!refreshCommit && !EditorUtility.DisplayDialog("Committing with dependencies", "Assets selected for committing have dependencies that will also be committed. Press Details to view full changeset", "Commit", "Details")) || refreshCommit))
{
this.committing = false;
this.selectedPage = Page.Commit;
window.description = this.commitMessage;
if (refreshCommit)
{
window.showReinitedWarning = 1;
}
this.asCommitWin = window;
base.Repaint();
GUIUtility.ExitGUI();
}
else
{
string[] itemsToCommit = window.GetItemsToCommit();
AssetServer.SetAfterActionFinishedCallback("ASEditorBackend", "CBOverviewsCommitFinished");
AssetServer.DoCommitOnNextTick(this.commitMessage, itemsToCommit);
AssetServer.SetLastCommitMessage(this.commitMessage);
window.AddToCommitMessageHistory(this.commitMessage);
this.committing = false;
GUIUtility.ExitGUI();
}
}