Improve DiscardChangesAction
[egit.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / internal / actions / ResetQuickdiffBaselineHeadParentAction.java
blob71e9dec4395b7ac1927b68a2a4da975d3bf1c3f6
1 /*******************************************************************************
2 * Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9 package org.eclipse.egit.ui.internal.actions;
11 import java.util.List;
13 import org.eclipse.egit.core.op.IEGitOperation;
15 /**
16 * Changes the reference for the quickdiff to the (first) parent of HEAD
18 public class ResetQuickdiffBaselineHeadParentAction extends AbstractRevObjectAction {
20 @Override
21 protected IEGitOperation createOperation(List selection) {
22 return new QuickdiffBaselineOperation(getActiveRepository(), "HEAD^1"); //$NON-NLS-1$