Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

remote: pull refactor to match default behavior of cgit #511

Merged
merged 1 commit into from
Jul 27, 2017
Merged

remote: pull refactor to match default behavior of cgit #511

merged 1 commit into from
Jul 27, 2017

Conversation

mcuadros
Copy link
Contributor

@mcuadros mcuadros commented Jul 26, 2017

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

Copy link
Collaborator

@smola smola left a 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. |
Copy link
Collaborator

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

Copy link
Contributor Author

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.
Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@mcuadros mcuadros merged commit 6b8d9f6 into src-d:master Jul 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants