java.lang.Object
org.eclipse.jgit.transport.UrlConfig
Support for URL translations via git configs
url.<base>.insteadOf and
url.<base>.pushInsteadOf.- Since:
- 6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether there are push replacements.Performs replacements as defined by git configurl.<base>.insteadOf.replacePush(String url) Performs replacements as defined by git configurl.<base>.pushInsteadOf.
-
Constructor Details
-
Method Details
-
replace
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
-
replacePush
Performs replacements as defined by git configurl.<base>.pushInsteadOf. If there is no match, the input is returned unchanged.- Parameters:
url- to substitute- Returns:
- the
urlwith substitution applied
-