com.microsoft.tfs.core.clients.build
Class GitProperties
java.lang.Object
com.microsoft.tfs.core.clients.build.GitProperties
public class GitProperties
- extends java.lang.Object
Method Summary |
static java.lang.String |
createBranchSpec(boolean excludeBranch,
java.lang.String branch)
|
static java.lang.String |
createGitItemUrl(java.lang.String project,
java.lang.String repo,
java.lang.String branch,
java.lang.String relativePathInRepo)
|
static java.lang.String |
createGitRepositoryUrl(java.lang.String collectionUrl,
java.lang.String teamProjectName,
java.lang.String repoName)
|
static java.lang.String |
createUniqueRepoName(java.lang.String teamProjectName,
java.lang.String repoName)
VS saves this unique repo name (teamProjectName/repoName) in source
provider |
static java.lang.String |
getRepoNameFromUniqueRepoName(java.lang.String uniqRepoName)
|
static java.lang.String |
getShortBranchName(java.lang.String name)
Get short branch name (e.g. |
static java.lang.String |
gitUriToLocalRelativePath(java.lang.String gitUri)
|
static java.lang.String |
joinBranches(java.lang.String[] branches)
|
static java.lang.String |
normalizePathSeparator(java.lang.String string)
|
static void |
parseBranchSpec(java.lang.String branchSpec,
boolean excludeBranch,
java.lang.String branch,
boolean isPattern,
boolean removePattern)
|
static boolean |
parseGitItemUrl(java.lang.String url,
java.util.concurrent.atomic.AtomicReference<java.lang.String> projectName,
java.util.concurrent.atomic.AtomicReference<java.lang.String> repositoryName,
java.util.concurrent.atomic.AtomicReference<java.lang.String> branchName,
java.util.concurrent.atomic.AtomicReference<java.lang.String> path)
Git repository item URL has to have the following format:
///[/] where
= vstfs:///Git/VersionedItem
The method parses the URL supplied and assigns corresponding parts to
provided variables (if the corresponding variable is not null |
static java.util.List<java.lang.String> |
splitBranches(java.lang.String branchString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathSeparator
public static final char PathSeparator
- Constant Field Value:
47
- See Also:
- Constant Field Values
WinPathSeparator
public static final char WinPathSeparator
- Constant Field Value:
92
- See Also:
- Constant Field Values
GIT
public static final java.lang.String GIT
- Constant Field Value:
"git"
- See Also:
- Constant Field Values
RepositoryUrl
public static final java.lang.String RepositoryUrl
- Constant Field Value:
"RepositoryUrl"
- See Also:
- Constant Field Values
RepositoryName
public static final java.lang.String RepositoryName
- Constant Field Value:
"RepositoryName"
- See Also:
- Constant Field Values
DefaultBranch
public static final java.lang.String DefaultBranch
- Constant Field Value:
"DefaultBranch"
- See Also:
- Constant Field Values
CIBranches
public static final java.lang.String CIBranches
- Constant Field Value:
"CIBranches"
- See Also:
- Constant Field Values
LocalRepoPath
public static final java.lang.String LocalRepoPath
- Constant Field Value:
"LocalRepoPath"
- See Also:
- Constant Field Values
GitPathBeginning
public static final java.lang.String GitPathBeginning
- Constant Field Value:
"vstfs:///Git/VersionedItem/"
- See Also:
- Constant Field Values
BranchPrefix
public static final java.lang.String BranchPrefix
- Constant Field Value:
"refs/heads/"
- See Also:
- Constant Field Values
GitProperties
public GitProperties()
createUniqueRepoName
public static java.lang.String createUniqueRepoName(java.lang.String teamProjectName,
java.lang.String repoName)
- VS saves this unique repo name (teamProjectName/repoName) in source
provider
getRepoNameFromUniqueRepoName
public static java.lang.String getRepoNameFromUniqueRepoName(java.lang.String uniqRepoName)
parseBranchSpec
public static void parseBranchSpec(java.lang.String branchSpec,
boolean excludeBranch,
java.lang.String branch,
boolean isPattern,
boolean removePattern)
createBranchSpec
public static java.lang.String createBranchSpec(boolean excludeBranch,
java.lang.String branch)
joinBranches
public static java.lang.String joinBranches(java.lang.String[] branches)
splitBranches
public static java.util.List<java.lang.String> splitBranches(java.lang.String branchString)
createGitRepositoryUrl
public static java.lang.String createGitRepositoryUrl(java.lang.String collectionUrl,
java.lang.String teamProjectName,
java.lang.String repoName)
gitUriToLocalRelativePath
public static java.lang.String gitUriToLocalRelativePath(java.lang.String gitUri)
createGitItemUrl
public static java.lang.String createGitItemUrl(java.lang.String project,
java.lang.String repo,
java.lang.String branch,
java.lang.String relativePathInRepo)
getShortBranchName
public static java.lang.String getShortBranchName(java.lang.String name)
- Get short branch name (e.g. master) from full branch name (e.g.
ref/heads/master)
normalizePathSeparator
public static java.lang.String normalizePathSeparator(java.lang.String string)
parseGitItemUrl
public static boolean parseGitItemUrl(java.lang.String url,
java.util.concurrent.atomic.AtomicReference<java.lang.String> projectName,
java.util.concurrent.atomic.AtomicReference<java.lang.String> repositoryName,
java.util.concurrent.atomic.AtomicReference<java.lang.String> branchName,
java.util.concurrent.atomic.AtomicReference<java.lang.String> path)
- Git repository item URL has to have the following format:
///[/] where
= vstfs:///Git/VersionedItem
The method parses the URL supplied and assigns corresponding parts to
provided variables (if the corresponding variable is not null
© 2015 Microsoft. All rights reserved.