@@ -69,37 +69,6 @@ IEnumerator IEnumerable.GetEnumerator()
69
69
70
70
#endregion
71
71
72
- /// <summary>
73
- /// Creates an annotated tag with the specified name.
74
- /// </summary>
75
- /// <param name = "name">The name.</param>
76
- /// <param name = "targetId">Id of the target object.</param>
77
- /// <param name = "tagger">The tagger.</param>
78
- /// <param name = "message">The message.</param>
79
- /// <param name = "allowOverwrite">True to allow silent overwriting a potentially existing tag, false otherwise.</param>
80
- /// <returns></returns>
81
- public virtual Tag Add ( string name , ObjectId targetId , Signature tagger , string message , bool allowOverwrite = false )
82
- {
83
- Ensure . ArgumentNotNullOrEmptyString ( name , "name" ) ;
84
- Ensure . ArgumentNotNull ( targetId , "targetId" ) ;
85
- Ensure . ArgumentNotNull ( tagger , "tagger" ) ;
86
- Ensure . ArgumentNotNull ( message , "message" ) ;
87
-
88
- string prettifiedMessage = ObjectDatabase . PrettifyMessage ( message ) ;
89
-
90
- int res ;
91
- using ( var objectPtr = new ObjectSafeWrapper ( targetId , repo ) )
92
- using ( SignatureSafeHandle taggerHandle = tagger . BuildHandle ( ) )
93
- {
94
- GitOid oid ;
95
- res = NativeMethods . git_tag_create ( out oid , repo . Handle , name , objectPtr . ObjectPtr , taggerHandle , prettifiedMessage , allowOverwrite ) ;
96
- }
97
-
98
- Ensure . Success ( res ) ;
99
-
100
- return this [ name ] ;
101
- }
102
-
103
72
/// <summary>
104
73
/// Creates an annotated tag with the specified name.
105
74
/// </summary>
@@ -179,30 +148,6 @@ public virtual Tag Add(string name, GitObject target, bool allowOverwrite = fals
179
148
return this [ name ] ;
180
149
}
181
150
182
- /// <summary>
183
- /// Creates a lightweight tag with the specified name.
184
- /// </summary>
185
- /// <param name = "name">The name.</param>
186
- /// <param name = "targetId">Id of the target object.</param>
187
- /// <param name = "allowOverwrite">True to allow silent overwriting a potentially existing tag, false otherwise.</param>
188
- /// <returns></returns>
189
- public virtual Tag Add ( string name , ObjectId targetId , bool allowOverwrite = false )
190
- {
191
- Ensure . ArgumentNotNullOrEmptyString ( name , "name" ) ;
192
- Ensure . ArgumentNotNull ( targetId , "targetId" ) ;
193
-
194
- int res ;
195
- using ( var objectPtr = new ObjectSafeWrapper ( targetId , repo ) )
196
- {
197
- GitOid oid ;
198
- res = NativeMethods . git_tag_create_lightweight ( out oid , repo . Handle , name , objectPtr . ObjectPtr , allowOverwrite ) ;
199
- }
200
-
201
- Ensure . Success ( res ) ;
202
-
203
- return this [ name ] ;
204
- }
205
-
206
151
/// <summary>
207
152
/// Creates a lightweight tag with the specified name.
208
153
/// </summary>
0 commit comments