public class GitHubUrlUtils extends Object
| Constructor and Description |
|---|
GitHubUrlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBlobUrl(String rootGitRepoUrl,
String ref,
String path) |
static String |
getBlobUrl(String rootGitRepoUrl,
String ref,
String path,
int lineStart,
int lineEnd) |
static String |
getTreeUrl(String rootGitRepoUrl,
String ref,
String path) |
static boolean |
isGitHubUrl(String rootGitRepoUrl) |
static String |
toHttpsIfNeed(String gitUrl)
normalize git@ and https:git@ urls
|
public static String toHttpsIfNeed(String gitUrl)
gitUrl - public static String getBlobUrl(String rootGitRepoUrl, String ref, String path, int lineStart, int lineEnd)
public static boolean isGitHubUrl(String rootGitRepoUrl)
Copyright © 2012–2018 Red Hat, Inc.. All rights reserved.