matthiasblaesing commented on a change in pull request #1995: [NETBEANS-3929]
Adding the ability to delete a tag from a remote repo.
URL: https://github.com/apache/netbeans/pull/1995#discussion_r387248386
##########
File path: ide/git/src/org/netbeans/modules/git/ui/push/PushMapping.java
##########
@@ -224,18 +224,58 @@ boolean isCreateBranchMapping () {
}
public static final class PushTagMapping extends PushMapping {
- private final GitTag tag;
+ private final GitTag tag; //local tag
private final boolean isUpdate;
-
+ private final String remoteTagName;
+
+ /**
+ * *
+ * Tag that we need to delete in the remote repository
+ *
+ * @param remoteName remote tag name
+ */
+ public PushTagMapping(String remoteName) {
+ super(null, null, remoteName, false, false, remoteName != null);
+ this.tag = null;
+ this.isUpdate = remoteName != null;
+ this.remoteTagName = remoteName;
+ }
+
+ /**
+ * Adding or updating tag in the remote repository
+ *
+ * @param tag representation of a local tag
+ * @param remoteName remote tag name, can be null. If null than we
crate
Review comment:
crate => create
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
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