Examples of GitBrancher


Examples of git4idea.branch.GitBrancher

            @Override
            public void consume(final ChangeInfo changeDetails) {
                Callable<Void> successCallable = new Callable<Void>() {
                    @Override
                    public Void call() throws Exception {
                        GitBrancher brancher = ServiceManager.getService(project, GitBrancher.class);
                        Optional<GitRepository> gitRepositoryOptional = gerritGitUtil.
                                getRepositoryForGerritProject(project, changeDetails.project);
                        brancher.checkout("FETCH_HEAD", Collections.singletonList(gitRepositoryOptional.get()), null);
                        return null;
                    }
                };
                fetchAction.fetchChange(selectedChange.get(), project, successCallable);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.