2 * Copyright 2000-2011 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package git4idea.push;
18 import git4idea.GitBranch;
19 import git4idea.repo.GitRemote;
20 import org.jetbrains.annotations.NotNull;
23 * @author Kirill Likhodedov
25 public class GitPushSpec {
27 @NotNull private final GitRemote myRemote;
28 @NotNull private final GitBranch mySource;
29 @NotNull private final GitBranch myDest;
31 GitPushSpec(@NotNull GitRemote remote, @NotNull GitBranch source, @NotNull GitBranch dest) {
38 public GitRemote getRemote() {
43 public GitBranch getSource() {
48 public GitBranch getDest() {
53 public String toString() {
54 return myRemote + " " + mySource + "->" + myDest;