git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Can't squash merge with merge.ff set to false
@ 2018-01-05 19:59 Robert Dailey
  2018-01-05 20:12 ` Bryan Turner
  2018-01-06  0:11 ` Jonathan Nieder
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Dailey @ 2018-01-05 19:59 UTC (permalink / raw)
  To: Git

Not sure if this is intended or a bug, but with the following configuration:

$ git config --global merge.ff false

I am not able to merge my topic branch into master with squash option:

$ git checkout master
$ git merge --squash topic
fatal: You cannot combine --squash with --no-ff.

I'm not sure why a non-fast-forward merge would prevent a squash
merge, since by its very nature a squashed merge is not a fast forward
merge (or maybe it is if you only have one commit).

Is there an issue here? I like fast forward merges to be off by
default, since I want to control when they happen. Most of my merges
do not use --squash, so I'm catering to the common case.

Need advice on how to get past this issue. Thanks in advance.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-06  0:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-05 19:59 Can't squash merge with merge.ff set to false Robert Dailey
2018-01-05 20:12 ` Bryan Turner
2018-01-05 20:26   ` Paul Smith
2018-01-05 20:35     ` Robert Dailey
2018-01-05 20:54       ` Bryan Turner
2018-01-05 21:44         ` Robert Dailey
2018-01-06  0:11 ` Jonathan Nieder

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).