This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Git.
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 |
---|---|
Cake |
|
Cake |
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 |
List of all tags from the repository. |