org.eclipse.jgit.lib
Class BranchConfig

java.lang.Object
  extended by org.eclipse.jgit.lib.BranchConfig

public class BranchConfig
extends Object

Branch section of a Git configuration file.


Constructor Summary
BranchConfig(Config config, String branchName)
          Create a new branch config, which will read configuration from config about specified branch.
 
Method Summary
 String getRemoteTrackingBranch()
           
 String getTrackingBranch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchConfig

public BranchConfig(Config config,
                    String branchName)
Create a new branch config, which will read configuration from config about specified branch.

Parameters:
config - the config to read from
branchName - the short branch name of the section to read
Method Detail

getTrackingBranch

public String getTrackingBranch()
Returns:
the full tracking branch name or null if it could not be determined

getRemoteTrackingBranch

public String getRemoteTrackingBranch()
Returns:
the full remote-tracking branch name or null if it could not be determined. If you also want local tracked branches use getTrackingBranch() instead.


Copyright © 2013. All Rights Reserved.