Support git_repository_message, git_repository_message_remove #734

Merged
bc-lee merged 2 commits from feature/646-git-repository-message into master 2021-02-02 21:42:22 -06:00
bc-lee commented 2021-02-01 07:18:24 -06:00 (Migrated from github.com)

Closes #646

Closes #646
lhchavez (Migrated from github.com) approved these changes 2021-02-02 08:27:05 -06:00
lhchavez (Migrated from github.com) left a comment

thanks! added a docstring and fixed a typo.

thanks! added a docstring and fixed a typo.
lhchavez (Migrated from github.com) commented 2021-02-02 08:26:49 -06:00
		t.Errorf("merge Message = %v, want %v", mergeMessage, expectedMessage)
```suggestion t.Errorf("merge Message = %v, want %v", mergeMessage, expectedMessage) ```
@ -691,0 +697,4 @@
//
// Use this function to get the contents of this file. Don't forget to remove
// the file after you create the commit.
func (r *Repository) Message() (string, error) {
lhchavez (Migrated from github.com) commented 2021-02-02 08:25:35 -06:00
// Message retrieves git's prepared message.
// Operations such as git revert/cherry-pick/merge with the -n option stop just
// short of creating a commit with the changes and save their prepared message
// in .git/MERGE_MSG so the next git-commit execution can present it to the
// user for them to amend if they wish.
//
// Use this function to get the contents of this file. Don't forget to remove
// the file after you create the commit.
func (r *Repository) Message() (string, error) {
```suggestion // Message retrieves git's prepared message. // Operations such as git revert/cherry-pick/merge with the -n option stop just // short of creating a commit with the changes and save their prepared message // in .git/MERGE_MSG so the next git-commit execution can present it to the // user for them to amend if they wish. // // Use this function to get the contents of this file. Don't forget to remove // the file after you create the commit. func (r *Repository) Message() (string, error) { ```
@ -691,0 +713,4 @@
}
// RemoveMessage removes git's prepared message.
func (r *Repository) RemoveMessage() error {
lhchavez (Migrated from github.com) commented 2021-02-02 08:26:12 -06:00
// RemoveMessage removes git's prepared message.
func (r *Repository) RemoveMessage() error {
```suggestion // RemoveMessage removes git's prepared message. func (r *Repository) RemoveMessage() error { ```
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#734
No description provided.