Chris2011 commented on code in PR #8922:
URL: https://github.com/apache/netbeans/pull/8922#discussion_r2653646973


##########
ide/git/src/org/netbeans/modules/git/ui/fetch/PullBranchesStep.java:
##########
@@ -129,7 +129,11 @@ public void setRemote (GitRemoteConfig remote) {
     }
 
     public void fillRemoteBranches (final Map<String, GitBranch> branches) {
-        fillRemoteBranches(Collections.<String,GitBranch>emptyMap(), 
Collections.<String,GitBranch>emptyMap());
+        fillRemoteBranches(branches, null);
+    }
+
+    public void fillRemoteBranches (final Map<String, GitBranch> branches, 
final GitBranch branchToSelect) {
+        fillRemoteBranchesInternal(Collections.<String,GitBranch>emptyMap(), 
Collections.<String,GitBranch>emptyMap(), null);

Review Comment:
   Yes, at the end, it is just to make everything set to the default. The null 
value. If the branchToSelect is set, line 175 is reached. Everything else, is 
for the default behaviour.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to