diff options
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/Untrack.java')
-rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/Untrack.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/Untrack.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/Untrack.java new file mode 100644 index 0000000000..19805c3089 --- /dev/null +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/Untrack.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com> + * Copyright (C) 2007, Shawn O. Pearce <spearce@spearce.org> + * + * 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.core.resources.IWorkspaceRunnable; +import org.eclipse.egit.core.op.UntrackOperation; +import org.eclipse.jface.action.IAction; + +/** + * An action to remove files from a Git repository. The removal does not alter + * history, only future commits on the same branch will be affected. + * + * @see UntrackOperation + */ +public class Untrack extends AbstractOperationAction { + protected IWorkspaceRunnable createOperation(final IAction act, + final List sel) { + return sel.isEmpty() ? null : new UntrackOperation(sel); + } +} |