Skip to content

"Pull remote" button should hint that rebase will occur for branch #6553

Closed

Description

@shiftkey

The design adds a "with rebase" message to the "Pull origin" action:

This check can be done in one of two ways:

There are some additional options here rather than just true which we need to be aware of:

When true, rebase branches on top of the fetched branch, instead of merging the default branch from the default remote when "git pull" is run. See "branch..rebase" for setting this on a per-branch basis.

When merges, pass the --rebase-merges option to git rebase so that the local merge commits are included in the rebase (see git-rebase[1] for details).

When preserve, also pass --preserve-merges along to git rebase so that locally committed merge commits will not be flattened by running git pull.

When the value is interactive, the rebase is run in interactive mode.

NOTE: this is a possibly dangerous operation; do not use it unless you understand the implications (see git-rebase[1] for details).

The first two options seem reasonable to consider, but the third one is not going to be able to be supported right now. I don't see a way to be able to disable that specific case in git-pull so that's going to be an interesting one to figure out 🤔

Activity

  1. added this to the 1.7.0 milestone on Jan 8, 2019
  2. self-assigned this
    on Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions