Browse Source

FetchV2Request: make getWantedRefs public

There are valid cases where a hook, invoked by ProtocolV2Hook
and probably implemented in a different package, is interested
in knowing the wanted refs in the request.

Increase visibility to public in the wanted-ref method.

Change-Id: I5da085ac7af4c396c1cb85e630f40a57fc70b33e
Signed-off-by: Ivan Frade <ifrade@google.com>
tags/v5.4.0.201905081430-m2
Ivan Frade 5 years ago
parent
commit
e1b1e01bec

+ 3
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchV2Request.java View File

@@ -98,9 +98,11 @@ public final class FetchV2Request extends FetchRequest {

/**
* @return list of references received in "want-ref" lines
*
* @since 5.3
*/
@NonNull
List<String> getWantedRefs() {
public List<String> getWantedRefs() {
return wantedRefs;
}


Loading…
Cancel
Save