GitAliases.

GitTags(ICakeContext, DirectoryPath, bool) Method

Summary

Gets a list of all tags from the repository with the option to load targets of the tags.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static List<Tag> GitTags(this ICakeContext context, DirectoryPath repositoryDirectoryPath, bool loadTargets)

Remarks

If you need to access the targets of the tags, set loadTargets to . This will make sure that the targets are loaded before the LibGit2Sharp.Repository is disposed. Otherwise, accessing a tag's target will throw an exception.

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Path to repository.
loadTargets bool A value indicating whether targets of the tags should be loaded.

Return Value

Type Description
List<Tag> List of all tags from the repository.