Commit is a convenience method to make working with the worktree a little bit easier.
(msg string, author *object.Signature)
| 74 | // Commit is a convenience method to make working with the worktree a little |
| 75 | // bit easier. |
| 76 | func (r *Repository) Commit(msg string, author *object.Signature) error { |
| 77 | if author == nil { |
| 78 | author = newAdminGitSignature() |
| 79 | } |
| 80 | |
| 81 | _, err := r.Worktree.Commit(msg, &git.CommitOptions{ |
| 82 | Author: author, |
| 83 | }) |
| 84 | |
| 85 | return err |
| 86 | } |
no test coverage detected