/*******************************************************************************
 * Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package org.eclipse.egit.ui.internal.actions;

import java.util.List;

import org.eclipse.egit.core.op.IEGitOperation;
import org.eclipse.egit.core.op.ResetOperation;
import org.eclipse.egit.ui.UIText;
import org.eclipse.jgit.revwalk.RevCommit;

/**
 * Hard reset to selected revision
 */
public class HardResetToRevisionAction extends AbstractRevCommitOperationAction {

	@Override
	protected IEGitOperation createOperation(final List<RevCommit> commits) {
		return new ResetOperation(getActiveRepository(),
				commits.get(0).getName(),
				ResetOperation.ResetType.HARD);
	}

	@Override
	protected String getJobName() {
		return UIText.HardResetToRevisionAction_hardReset;
	}
}

@@ -675,16 +675,105 @@
 UIText;%0A
+import org.eclipse.jface.action.IAction;%0Aimport org.eclipse.jface.dialogs.MessageDialog;%0A
 import o
@@ -1241,10 +1241,260 @@
 set;%0A%09%7D%0A
+%0A%09@Override%0A%09public void run(IAction act) %7B%0A%09%09if (!MessageDialog.openQuestion(wp.getSite().getShell(),%0A%09%09%09%09UIText.ResetTargetSelectionDialog_ResetQuestion,%0A%09%09%09%09UIText.ResetTargetSelectionDialog_ResetConfirmQuestion))%0A%09%09%09return;%0A%09%09super.run(act);%0A%09%7D%0A%0A
 %7D%0A

Add missing confirmation dialog for hard reset