- java.lang.Object
-
- org.eclipse.jgit.transport.UrlConfig
-
public class UrlConfig extends Object
Support for URL translations via git configsurl.<base>.insteadOfandurl.<base>.pushInsteadOf.- Since:
- 6.2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasPushReplacements()Tells whether there are push replacements.Stringreplace(String url)Performs replacements as defined by git configurl.<base>.insteadOf.StringreplacePush(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
urlwith substitution applied
-
hasPushReplacements
public boolean hasPushReplacements()
Tells whether there are push replacements.- Returns:
trueif there are push replacements,falseotherwise
-
-