Constructor and Description |
---|
PathUtil() |
Modifier and Type | Method and Description |
---|---|
Path |
convert(Path path) |
Path |
convert(Path path) |
Optional<String> |
extractBranch(String uri) |
String |
getNiogitRepoPath(Path path) |
Path |
normalizePath(Path path) |
String |
replaceBranch(String newBranchName,
String uri) |
String |
stripProtocolAndBranch(String uri) |
String |
stripRepoNameAndSpace(String strippedPath) |
public String stripRepoNameAndSpace(String strippedPath)
strippedPath
- Assumed to be a return value of stripProtocolAndBranch(String)
public String getNiogitRepoPath(Path path)
path
- A path for a JGit file system. Must not be null.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.