ePages 6.17.35 - DE_EPAGES/Installer/API/GitTag.pm

Package DE_EPAGES::Installer::API::GitTag

This module provides Git tag commands.

Example
my $GitTag = DE_EPAGES::Installer::API::GitTag->new();
$GitTag->AddLocalTag('patch_6_17_28');
@EXPORT_OK
AddLocalTag
RemoveLocalTag
PushAddedLocalTag
PushRemovedLocalTag
RemoveRemoteTag
RemoveTag
AddTag
ExistsTag

Functions

AddLocalTag
AddTag
ExistsTag
PushAddedLocalTag
RemoveLocalTag
RemoveRemoteTag
RemoveTag
new

AddLocalTag

Add a new local tag for last commit.

Syntax
$self->AddLocalTag($Tag, $TagMessage);
Input
$Tag (string)
tag name
$TagMessage (string)
message for the tag

AddTag

Add a new tag locally as well as on remote for last commit.

Syntax
$self->AddTag($Remote, $TagName);
Input
$Remote (string)
name of epages remote
$TagName (string)
name of the tag
$TagMessage (string)
message for the tag

ExistsTag

Checks if a certain tag already exists on remote.

Syntax
$self->ExistsTag($Tag);
Input
$Tag (string)
given tag name
Return
(bool)
1, if tag already exists, 0 otherwise

PushAddedLocalTag

Push added Tag to remote or all.

Syntax
$self->PushAddedLocalTag($Remote, $TagName);
$self->PushAddedLocalTag($Remote);
Input
$Remote (string)
name of epages remote
$TagName (string)
(optional) name of the tag

RemoveLocalTag

Remove a local tag.

Syntax
$self->RemoveLocalTag($Tag);
Input
$Tag (string)
tag name

RemoveRemoteTag

Delete a tag directly from Git remote. Does not affect the local tag!

Syntax
$self->RemoveRemoteTag($Remote, $TagName);
Input
$Remote (string)
name of epages remote
$TagName (string)
name of the tag

RemoveTag

Delete a tag locally as well as on remote.

Syntax
$self->RemoveTag($Remote, $TagName);
Input
$Remote (string)
name of epages remote
$TagName (string)
name of the tag

new

Create a GitTag handler object.

Syntax
$Git = DE_EPAGES::Installer::API::Git->new();