@@ -71,6 +71,13 @@ git_branch *Branch::GetValue() {
7171}
7272
7373
74+ /* *
75+ * @param {Repository} repo
76+ * @param {String} branch_name
77+ * @param {Commit} target
78+ * @param {Number} force
79+ * @return {Reference} out
80+ */
7481Handle<Value> Branch::Create (const Arguments& args) {
7582 HandleScope scope;
7683 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -110,6 +117,9 @@ Handle<Value> Branch::Create(const Arguments& args) {
110117 return scope.Close (to);
111118}
112119
120+ /* *
121+ * @param {Reference} branch
122+ */
113123Handle<Value> Branch::Delete (const Arguments& args) {
114124 HandleScope scope;
115125 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -128,6 +138,12 @@ Handle<Value> Branch::Delete(const Arguments& args) {
128138 return Undefined ();
129139}
130140
141+ /* *
142+ * @param {Repository} repo
143+ * @param {Number} list_flags
144+ * @param {BranchForeachCb} branch_cb
145+ * @param {void} payload
146+ */
131147Handle<Value> Branch::Foreach (const Arguments& args) {
132148 HandleScope scope;
133149 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -161,6 +177,12 @@ Handle<Value> Branch::Foreach(const Arguments& args) {
161177 return Undefined ();
162178}
163179
180+ /* *
181+ * @param {Reference} branch
182+ * @param {String} new_branch_name
183+ * @param {Number} force
184+ * @return {Reference} out
185+ */
164186Handle<Value> Branch::Move (const Arguments& args) {
165187 HandleScope scope;
166188 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -195,6 +217,12 @@ Handle<Value> Branch::Move(const Arguments& args) {
195217 return scope.Close (to);
196218}
197219
220+ /* *
221+ * @param {Repository} repo
222+ * @param {String} branch_name
223+ * @param {BranchT} branch_type
224+ * @return {Reference} out
225+ */
198226Handle<Value> Branch::Lookup (const Arguments& args) {
199227 HandleScope scope;
200228 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -229,6 +257,10 @@ Handle<Value> Branch::Lookup(const Arguments& args) {
229257 return scope.Close (to);
230258}
231259
260+ /* *
261+ * @param {Reference} ref
262+ * @return {String} out
263+ */
232264Handle<Value> Branch::Name (const Arguments& args) {
233265 HandleScope scope;
234266 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -251,6 +283,10 @@ Handle<Value> Branch::Name(const Arguments& args) {
251283 return scope.Close (to);
252284}
253285
286+ /* *
287+ * @param {Reference} branch
288+ * @return {Reference} out
289+ */
254290Handle<Value> Branch::Upstream (const Arguments& args) {
255291 HandleScope scope;
256292 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -273,6 +309,10 @@ Handle<Value> Branch::Upstream(const Arguments& args) {
273309 return scope.Close (to);
274310}
275311
312+ /* *
313+ * @param {Reference} branch
314+ * @param {String} upstream_name
315+ */
276316Handle<Value> Branch::SetUpstream (const Arguments& args) {
277317 HandleScope scope;
278318 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -298,6 +338,12 @@ Handle<Value> Branch::SetUpstream(const Arguments& args) {
298338 return Undefined ();
299339}
300340
341+ /* *
342+ * @param {String} tracking_branch_name_out
343+ * @param {Number} buffer_size
344+ * @param {Repository} repo
345+ * @param {String} canonical_branch_name
346+ */
301347Handle<Value> Branch::UpstreamName (const Arguments& args) {
302348 HandleScope scope;
303349 if (args.Length () == 0 || !args[0 ]->IsString ()) {
@@ -335,6 +381,9 @@ Handle<Value> Branch::UpstreamName(const Arguments& args) {
335381 return Undefined ();
336382}
337383
384+ /* *
385+ * @param {Reference} branch
386+ */
338387Handle<Value> Branch::IsHead (const Arguments& args) {
339388 HandleScope scope;
340389 if (args.Length () == 0 || !args[0 ]->IsObject ()) {
@@ -353,6 +402,12 @@ Handle<Value> Branch::IsHead(const Arguments& args) {
353402 return Undefined ();
354403}
355404
405+ /* *
406+ * @param {String} remote_name_out
407+ * @param {Number} buffer_size
408+ * @param {Repository} repo
409+ * @param {String} canonical_branch_name
410+ */
356411Handle<Value> Branch::RemoteName (const Arguments& args) {
357412 HandleScope scope;
358413 if (args.Length () == 0 || !args[0 ]->IsString ()) {
0 commit comments