git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jay Soffian <jaysoffian@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, jean-luc malet <jeanluc.malet@gmail.com>
Subject: Re: [PATCH 3/3] builtin-merge: add support for default merge options
Date: Sat, 7 Mar 2009 08:48:37 -0500	[thread overview]
Message-ID: <76718490903070548u4545ec12me4698fef0df6c7b0@mail.gmail.com> (raw)
In-Reply-To: <7vzlfxpzqq.fsf@gitster.siamese.dyndns.org>

On Sat, Mar 7, 2009 at 2:18 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Note that you do not have to cover branch.*.remote and other things in the
> same patch.  The first one could just handle branch.*.mergeoptions and you
> can let later patches to implement the fallbacks for other variables.

Oh, indeed, but I think I do need to provide all the patches at once.
Otherwise it will just be very confusing and I anticipate a user
asking "how come I can use branch.*.mergeoptions, but none of the
other branch.*.foo settings work?"

And to be honest, that concern extends beyond branch.*. "How come git
foo allows defaults, but git bar does not?" seems like a valid
question, and while "because no one implemented defaults for foo and
bar" is a valid answer, it isn't a very satisfying one (to me).

This thread is what inspired me to start the "what's so evil about
overriding builtins with aliases" thread (please don't address that
here, I got it from the other thread). But I still wonder if we should
provide defaults consistently instead of piecemeal. For example:

[defaults]
   merge = --no-ff

But I suppose that will be objected to as confusing/complicated/likely
to have side-effects.

j.

  reply	other threads:[~2009-03-07 13:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06 22:15 [PATCH 0/3] Re: how to have --no-ff be the default for all branch Jay Soffian
2009-03-06 22:15 ` [PATCH 1/3] config: add git_config_option_string() Jay Soffian
2009-03-06 22:15   ` [PATCH 2/3] builtin-merge: refactor to use git_config_option_string Jay Soffian
2009-03-06 22:15     ` [PATCH 3/3] builtin-merge: add support for default merge options Jay Soffian
2009-03-06 22:46       ` Junio C Hamano
2009-03-06 23:16         ` Jay Soffian
2009-03-07  0:44           ` [PATCH v2 " Jay Soffian
2009-03-07  0:58           ` [PATCH " Junio C Hamano
2009-03-07  1:56             ` Jay Soffian
2009-03-07  7:18               ` Junio C Hamano
2009-03-07 13:48                 ` Jay Soffian [this message]
2009-03-07 19:31                 ` jean-luc malet
2010-03-19 14:19                   ` jean-luc malet
2010-03-19 14:54                     ` Jay Soffian
2010-04-02 17:19                       ` jean-luc malet

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=76718490903070548u4545ec12me4698fef0df6c7b0@mail.gmail.com \
    --to=jaysoffian@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jeanluc.malet@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).