-
Notifications
You must be signed in to change notification settings - Fork 534
remote: pull refactor to match default behavior of cgit #511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments to improve wording. Looks good.
@@ -27,7 +27,7 @@ is supported by go-git. | |||
| tag | ✔ | | |||
| **sharing and updating projects** | | |||
| fetch | ✔ | | |||
| pull | ✔ | | |||
| pull | ✔ | Only supports merges where the merge can be resolved as a fast-forward. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe reword as Only supports fast-forward merges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is copy from the git documentation
@@ -36,6 +37,8 @@ type Worktree struct { | |||
// Pull incorporates changes from a remote repository into the current branch. | |||
// Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are | |||
// no changes to be fetched, or an error. | |||
// | |||
// Pull only supports merges where the can be resolved as a fast-forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe reword, see previous comment.
@@ -44,6 +47,8 @@ func (w *Worktree) Pull(o *PullOptions) error { | |||
// branch. Returns nil if the operation is successful, NoErrAlreadyUpToDate if | |||
// there are no changes to be fetched, or an error. | |||
// | |||
// Pull only supports merges where the can be resolved as a fast-forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
This PR implement the default behavior of cgit, until now Pull was wrongly implemented changing the branch instead of merging the incoming branch into the current HEAD.
Fixes #470