Package org.eclipse.jgit.transport
Class UrlConfig
- java.lang.Object
-
- org.eclipse.jgit.transport.UrlConfig
-
public class UrlConfig extends Object
Support for URL translations via git configsurl.<base>.insteadOf
andurl.<base>.pushInsteadOf
.- Since:
- 6.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasPushReplacements()
Tells whether there are push replacements.String
replace(String url)
Performs replacements as defined by git configurl.<base>.insteadOf
.String
replacePush(String url)
Performs replacements as defined by git configurl.<base>.pushInsteadOf
.
-
-
-
Method Detail
-
replace
public String replace(String url)
Performs replacements as defined by git configurl.<base>.insteadOf
. If there is no match, the input is returned unchanged.- Parameters:
url
- to substitute- Returns:
- the
url
with substitution applied
-
hasPushReplacements
public boolean hasPushReplacements()
Tells whether there are push replacements.- Returns:
true
if there are push replacements,false
otherwise
-
-