@@ -35,8 +35,9 @@ void GitReference::Initialize(Handle<v8::Object> target) {
3535
3636 NODE_SET_METHOD (tpl, " oidForName" , OidForName);
3737 NODE_SET_PROTOTYPE_METHOD (tpl, " oid" , Oid);
38- NODE_SET_PROTOTYPE_METHOD (tpl, " name " , Name );
38+ NODE_SET_PROTOTYPE_METHOD (tpl, " symbolicTarget " , SymbolicTarget );
3939 NODE_SET_PROTOTYPE_METHOD (tpl, " type" , Type);
40+ NODE_SET_PROTOTYPE_METHOD (tpl, " name" , Name);
4041 NODE_SET_PROTOTYPE_METHOD (tpl, " resolve" , Resolve);
4142 NODE_SET_PROTOTYPE_METHOD (tpl, " setSymbolicTarget" , SetSymbolicTarget);
4243 NODE_SET_PROTOTYPE_METHOD (tpl, " setTarget" , setTarget);
@@ -179,7 +180,7 @@ Handle<Value> GitReference::Oid(const Arguments& args) {
179180/* *
180181 * @return {String} result
181182 */
182- Handle<Value> GitReference::Name (const Arguments& args) {
183+ Handle<Value> GitReference::SymbolicTarget (const Arguments& args) {
183184 HandleScope scope;
184185
185186
@@ -208,6 +209,22 @@ Handle<Value> GitReference::Type(const Arguments& args) {
208209 return scope.Close (to);
209210}
210211
212+ /* *
213+ * @return {String} result
214+ */
215+ Handle<Value> GitReference::Name (const Arguments& args) {
216+ HandleScope scope;
217+
218+
219+ const char * result = git_reference_name (
220+ ObjectWrap::Unwrap<GitReference>(args.This ())->GetValue ()
221+ );
222+
223+ Handle<Value> to;
224+ to = String::New (result);
225+ return scope.Close (to);
226+ }
227+
211228/* *
212229 * @param {Reference} callback
213230 */
0 commit comments