@@ -7,6 +7,19 @@ namespace LibGit2Sharp
7
7
/// </summary>
8
8
public static class TagCollectionExtensions
9
9
{
10
+ /// <summary>
11
+ /// Creates an annotated tag with the specified name.
12
+ /// </summary>
13
+ /// <param name="name">The name.</param>
14
+ /// <param name="objectish">Revparse spec for the target object.</param>
15
+ /// <param name="tagger">The tagger.</param>
16
+ /// <param name="message">The message.</param>
17
+ /// <param name="tags">The <see cref="TagCollection"/> being worked with.</param>
18
+ public static Tag Add ( this TagCollection tags , string name , string objectish , Signature tagger , string message )
19
+ {
20
+ return tags . Add ( name , objectish , tagger , message , false ) ;
21
+ }
22
+
10
23
/// <summary>
11
24
/// Creates an annotated tag with the specified name.
12
25
/// </summary>
@@ -16,7 +29,7 @@ public static class TagCollectionExtensions
16
29
/// <param name="message">The message.</param>
17
30
/// <param name="allowOverwrite">True to allow silent overwriting a potentially existing tag, false otherwise.</param>
18
31
/// <param name="tags">The <see cref="TagCollection"/> being worked with.</param>
19
- public static Tag Add ( this TagCollection tags , string name , string objectish , Signature tagger , string message , bool allowOverwrite = false )
32
+ public static Tag Add ( this TagCollection tags , string name , string objectish , Signature tagger , string message , bool allowOverwrite )
20
33
{
21
34
Ensure . ArgumentNotNullOrEmptyString ( objectish , "target" ) ;
22
35
@@ -25,14 +38,25 @@ public static Tag Add(this TagCollection tags, string name, string objectish, Si
25
38
return tags . Add ( name , objectToTag , tagger , message , allowOverwrite ) ;
26
39
}
27
40
41
+ /// <summary>
42
+ /// Creates a lightweight tag with the specified name.
43
+ /// </summary>
44
+ /// <param name="name">The name.</param>
45
+ /// <param name="objectish">Revparse spec for the target object.</param>
46
+ /// <param name="tags">The <see cref="TagCollection"/> being worked with.</param>
47
+ public static Tag Add ( this TagCollection tags , string name , string objectish )
48
+ {
49
+ return tags . Add ( name , objectish , false ) ;
50
+ }
51
+
28
52
/// <summary>
29
53
/// Creates a lightweight tag with the specified name.
30
54
/// </summary>
31
55
/// <param name="name">The name.</param>
32
56
/// <param name="objectish">Revparse spec for the target object.</param>
33
57
/// <param name="allowOverwrite">True to allow silent overwriting a potentially existing tag, false otherwise.</param>
34
58
/// <param name="tags">The <see cref="TagCollection"/> being worked with.</param>
35
- public static Tag Add ( this TagCollection tags , string name , string objectish , bool allowOverwrite = false )
59
+ public static Tag Add ( this TagCollection tags , string name , string objectish , bool allowOverwrite )
36
60
{
37
61
Ensure . ArgumentNotNullOrEmptyString ( objectish , "objectish" ) ;
38
62
0 commit comments