Package org.rstudio.studio.client.common.vcs

Examples of org.rstudio.studio.client.common.vcs.RemoteBranchInfo


         @Override
         public void onVcsRefresh(VcsRefreshEvent event)
         {
            view_.setItems(gitState_.getStatus());
           
            RemoteBranchInfo remote = gitState_.getRemoteBranchInfo();
            if (remote != null && remote.getCommitsBehind() > 0)
            {
               String message =
                  "Your branch is ahead of '" + remote.getName() + "' by " +
                  remote.getCommitsBehind() + " commit" +
                  (remote.getCommitsBehind() > 1 ? "s" : "") + ".";
              
               view_.showInfoBar(message);
            }
            else
            {
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.common.vcs.RemoteBranchInfo

Copyright © 2018 www.massapicom. 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.