Skip to content

Commit 158278c

Browse files
committed
add method docs
1 parent 8454965 commit 158278c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/rugged/rugged_commit.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,12 @@ static VALUE rb_git_commit_to_mbox(int argc, VALUE *argv, VALUE self)
557557
return rb_email_patch;
558558
}
559559

560+
/*
561+
* call-seq:
562+
* commit.header_field(field_name) -> str
563+
*
564+
* Returns +commit+'s header field value.
565+
*/
560566
static VALUE rb_git_commit_header_field(VALUE self, VALUE rb_field) {
561567
git_buf header_field = { 0 };
562568
VALUE rb_result;
@@ -577,6 +583,12 @@ static VALUE rb_git_commit_header_field(VALUE self, VALUE rb_field) {
577583
return rb_result;
578584
}
579585

586+
/*
587+
* call-seq:
588+
* commit.header -> str
589+
*
590+
* Returns +commit+'s entire raw header.
591+
*/
580592
static VALUE rb_git_commit_header(VALUE self) {
581593
VALUE rb_result;
582594
git_commit *commit;

0 commit comments

Comments
 (0)