@@ -73,19 +73,19 @@ IEnumerator IEnumerable.GetEnumerator()
73
73
/// Creates an annotated tag with the specified name.
74
74
/// </summary>
75
75
/// <param name = "name">The name.</param>
76
- /// <param name = "target">The target which can be sha or a canonical reference name .</param>
76
+ /// <param name = "objectish">Revparse spec of the target object .</param>
77
77
/// <param name = "tagger">The tagger.</param>
78
78
/// <param name = "message">The message.</param>
79
79
/// <param name = "allowOverwrite">True to allow silent overwriting a potentially existing tag, false otherwise.</param>
80
80
/// <returns></returns>
81
- public virtual Tag Add ( string name , string target , Signature tagger , string message , bool allowOverwrite = false )
81
+ public virtual Tag Add ( string name , string objectish , Signature tagger , string message , bool allowOverwrite = false )
82
82
{
83
83
Ensure . ArgumentNotNullOrEmptyString ( name , "name" ) ;
84
- Ensure . ArgumentNotNullOrEmptyString ( target , "target " ) ;
84
+ Ensure . ArgumentNotNullOrEmptyString ( objectish , "objectish " ) ;
85
85
Ensure . ArgumentNotNull ( tagger , "tagger" ) ;
86
86
Ensure . ArgumentNotNull ( message , "message" ) ;
87
87
88
- GitObject objectToTag = repo . Lookup ( target , GitObjectType . Any , LookUpOptions . ThrowWhenNoGitObjectHasBeenFound ) ;
88
+ GitObject objectToTag = repo . Lookup ( objectish , GitObjectType . Any , LookUpOptions . ThrowWhenNoGitObjectHasBeenFound ) ;
89
89
90
90
string prettifiedMessage = ObjectDatabase . PrettifyMessage ( message ) ;
91
91
@@ -130,15 +130,15 @@ public virtual Tag Create(string name, string target, Signature tagger, string m
130
130
/// Creates a lightweight tag with the specified name.
131
131
/// </summary>
132
132
/// <param name = "name">The name.</param>
133
- /// <param name = "target">The target which can be sha or a canonical reference name .</param>
133
+ /// <param name = "objectish">Revparse spec of the target object .</param>
134
134
/// <param name = "allowOverwrite">True to allow silent overwriting a potentially existing tag, false otherwise.</param>
135
135
/// <returns></returns>
136
- public virtual Tag Add ( string name , string target , bool allowOverwrite = false )
136
+ public virtual Tag Add ( string name , string objectish , bool allowOverwrite = false )
137
137
{
138
138
Ensure . ArgumentNotNullOrEmptyString ( name , "name" ) ;
139
- Ensure . ArgumentNotNullOrEmptyString ( target , "target " ) ;
139
+ Ensure . ArgumentNotNullOrEmptyString ( objectish , "objectish " ) ;
140
140
141
- GitObject objectToTag = repo . Lookup ( target , GitObjectType . Any , LookUpOptions . ThrowWhenNoGitObjectHasBeenFound ) ;
141
+ GitObject objectToTag = repo . Lookup ( objectish , GitObjectType . Any , LookUpOptions . ThrowWhenNoGitObjectHasBeenFound ) ;
142
142
143
143
int res ;
144
144
using ( var objectPtr = new ObjectSafeWrapper ( objectToTag . Id , repo ) )
0 commit comments