# Git Pull --ff-only should imply --no-rebase

1 messages from 2019-02-25 to 2019-02-25. Participants: Shane Carr.
Thread: https://gitlist.dev/t/50581

## Shane Carr, 2019-02-25 08:42

Subject: Git Pull --ff-only should imply --no-rebase
Message-ID: <CABxsp=msDSGGFjn178ze-s3XR3UJU=NEkV1jzS9QN-zjZisMgg@mail.gmail.com>
URL: https://gitlist.dev/e/CABxsp%3DmsDSGGFjn178ze-s3XR3UJU%3DNEkV1jzS9QN-zjZisMgg%40mail.gmail.com

```
Greetings,

I have the pull.rebase config enabled for my branch.  Sometimes I want
to pull and I know that the pull is going to be a fast-forward.
However, if I run

    git pull --ff-only   # (with pull.rebase config enabled)

I get the error

    error: Cannot pull with rebase: You have unstaged changes.

Instead, if my working directory is not clean, I have to do

    git pull --ff-only --no-rebase

Since --ff-only implies that there is going to be neither a merge nor
a rebase taking place, Git should not complain about unstaged changes
and should have the same behavior on --ff-only whether or not the
pull.rebase config is enabled.

Shane

```
