From: Junio C Hamano <gitster@pobox.com>
To: Matt McClure <matthewlmcclure@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: override merge.ff = false using --ff-only
Date: Wed, 22 May 2013 11:12:01 -0700 [thread overview]
Message-ID: <7vzjvmj34e.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CAJELnLFqzVBd57vudsCFrTNMVxETO75GT5T5NO0sDMtgHZJU6g@mail.gmail.com> (Matt McClure's message of "Wed, 22 May 2013 09:21:23 -0400")
Matt McClure <matthewlmcclure@gmail.com> writes:
> I naively tried to override merge.ff = false using --ff-only on the
> command line. I expected that it would override the configured default
> and perform a fast-forward merge. Instead, it said:
>
> $ git config -l | grep -F 'merge.ff'
> merge.ff=false
>
> $ git merge --ff-only foo
> fatal: You cannot combine --no-ff with --ff-only.
>
> On the other hand, I see that --ff works just fine in the same initial state.
>
> $ git merge --ff foo
> Updating b869407..17b5495
> Fast-forward
> ...
> 4 files changed, 2 insertions(+), 5 deletions(-)
>
> Would it be better if --ff-only refused to merge only if the commits
> themselves prevented fast-forwarding?
In general it would be better if any --ff related command line
options made us ignore the configured default like merge.ff the user
may have in the repository, not just --ff-only vs merge.ff
combination, and your "On the other hand" demonstrates that it is
the case for --ff from the command line.
I do not offhand see why --ff-only should behave differently from
that expectation.
prev parent reply other threads:[~2013-05-22 18:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAJELnLEGCshD9z9get62+T6Z83OdPJ+A5BNSzsHA1_OC1Q00Hw@mail.gmail.com>
2013-05-22 13:21 ` override merge.ff = false using --ff-only Matt McClure
2013-05-22 13:36 ` Yann Droneaud
2013-05-22 18:12 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vzjvmj34e.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=matthewlmcclure@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).