Thread (22 messages) 22 messages, 2 authors, 2020-12-07

Re: [PATCH v3 13/16] pull: add proper error with --ff-only

From: Felipe Contreras <hidden>
Date: 2020-12-05 20:16:45

On Sat, Dec 5, 2020 at 1:53 PM Felipe Contreras
[off-list ref] wrote:
The current error is not user-friendly:

  fatal: not possible to fast-forward, aborting.

We want something that actually explains what is going on:

  The pull was not fast-forward, please either merge or rebase.

The user can get rid of the warning by doing either --merge or
--rebase.

Except: doing "git pull --merge" is not actually enough; we would return
to the previous behavior: "fatal: not possible to fast-forward,
aborting". In order to do the right thing we will have to change the
semantics of --ff-only.
This commit is wrong, the next one somehow got squashed into it.

I'm sending the two patches separately.

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help