public GitCheckoutResponse checkout ( File repositoryPath , List < File > paths ) throws IOException , JavaGitException { CheckUtilities . checkFileValidity ( repositoryPath ) ; CheckUtilities . checkNullListArgument ( paths , "List of Paths" ) ; IClient client = ClientManager . getInstance ( ) . getPreferredClient ( ) ; IGitCheckout gitCheckout = client . getGitCheckoutInstance ( ) ; return gitCheckout . checkout ( repositoryPath , paths ) ; }
For checking a file or list of files from a branch .