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 TypeMethodDescriptionboolean
Tells 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
url
with substitution applied
-
hasPushReplacements
public boolean hasPushReplacements()Tells whether there are push replacements.- Returns:
true
if there are push replacements,false
otherwise
-
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
url
with substitution applied
-