public class GitInfoUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
filterSensitiveInfo(String urlStr)
Filters the user info given a valid HTTP URL.
|
static String |
normalizeBranch(String branchName)
Returns a normalized git branch
E.g.
|
static String |
normalizeTag(String tagName)
Returns a normalized git tag
E.g: refs/heads/tags/0.1.0 or origin/tags/0.1.0 returns 0.1.0
|
public static String normalizeTag(String tagName)
tagName
- the tag name to normalizepublic static String normalizeBranch(String branchName)
branchName
- the branch name to normalizeCopyright © 2016–2023. All rights reserved.