git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Nanako Shiraishi <nanako3@lavabit.com>, git@vger.kernel.org
Subject: Re: push.default, was Re: What's cooking in git.git (Mar 2009, #04; Sat, 14)
Date: Tue, 17 Mar 2009 16:47:20 -0700	[thread overview]
Message-ID: <7vab7jpv93.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0903172350270.10279@pacific.mpi-cbg.de> (Johannes Schindelin's message of "Tue, 17 Mar 2009 23:53:38 +0100 (CET)")

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> Hi,
>
> On Wed, 18 Mar 2009, Nanako Shiraishi wrote:
>
>> Quoting Johannes Schindelin <Johannes.Schindelin@gmx.de>:
>> 
>> > On Sat, 14 Mar 2009, Junio C Hamano wrote:
>> >
>> >> * fg/push-default (Wed Mar 11 23:01:45 2009 +0100) 1 commit
>> >>  - New config push.default to decide default behavior for push
>> >> 
>> >> Replaced the old series with the first step to allow a smooth 
>> >> transition. Some might argue that this should not give any warning 
>> >> but just give users this new configuration to play with first, and 
>> >> after we know we are going to switch default some day, start the 
>> >> warning.
>> >
>> > IIRC Steffen posted a patch series earlier, where he initialized 
>> > remote.origin.push upon clone (I am not sure if he provided a 
>> > corresponding patch for checkout --track), but personally, I think 
>> > that would be nicer than having a push.default.
>> 
>> Isn't recent trend to avoid such inconsistency between behavior in an 
>> existing repository and behavior in a newly created repository? For 
>> example, Jeff calls such inconsistency in
>> 
>>   http://thread.gmane.org/gmane.comp.version-control.git/100339/focus=100433
>> 
>> as "this breaks in my repo, but when I make a test repo it works". Junio 
>> even called it 'madness' (^_^;)
>
> My point is that it is _not_ an inconsistency.
>
> It has a default setting.  One that already is well established.  Push the 
> matching refs.
>
> But you can override it by setting the config variable.  Which is also 
> well established.
>
> The only thing Steffen's patches would have changed would be to set the 
> default differently now.
>
> Which is not that much of a 'madness'.
>
> Especially if you think about changing the default, which _will_ make for 
> angry users ("why did you change the default?  I _liked_ it!  Please 
> revert _now_!").

I cloned my old project to my new machine with a recent git and it behaves
differently.  Why did you change the default "git clone" creates, without
telling me?

Sounds like a huge inconsistency to me.

  reply	other threads:[~2009-03-17 23:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-15  6:28 What's cooking in git.git (Mar 2009, #04; Sat, 14) Junio C Hamano
2009-03-16 23:11 ` Daniel Barkalow
2009-03-17  0:19   ` Junio C Hamano
2009-03-17 10:28 ` push.default, was " Johannes Schindelin
2009-03-17 21:30   ` Nanako Shiraishi
2009-03-17 22:53     ` Johannes Schindelin
2009-03-17 23:47       ` Junio C Hamano [this message]
2009-03-18  0:40         ` Johannes Schindelin
2009-03-18  1:05           ` Junio C Hamano
2009-03-17 10:31 ` notes, " Johannes Schindelin

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=7vab7jpv93.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=nanako3@lavabit.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).