All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Cc: Greg Jacobson <coder5000@gmail.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH v3] push: Enhance unspecified push default warning
Date: Wed, 06 Nov 2013 11:01:31 -0800	[thread overview]
Message-ID: <xmqqk3gl8id0.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <1839883487.4893076.1383646619137.JavaMail.root@imag.fr> (Matthieu Moy's message of "Tue, 5 Nov 2013 11:16:59 +0100 (CET)")

Matthieu Moy <matthieu.moy@grenoble-inp.fr> writes:

> I don't remember all the discussions on the patch which introduced
> the warning, but I don't think it's relevant to digg them before applying the patch:

If we apply the patch then it is too late to dig them ;-)

> * The assumption was that users would read the docs, but as I already mentioned:
>   "Judging by the question asked on stackoverflow
>   ( http://stackoverflow.com/questions/13148066/warning-push-default-is-unset-its-implicit-value-is-changing-in-git-2-0 )
>   and its popularity, telling the users to read the docs did not work very
>   well."

That is true, but does it justify giving a misleading information in
the advice message?

Specifically:

>> +   "When push.default is set to 'matching', git will push all local branches\n"
>> +   "to the remote branches with the same (matching) name.

invites those who do not read documentation to mistake it with using
an explicit "refs/heads/*:refs/heads/*" refspec.

And this one

>> +   "In Git 2.0 the new push.default of 'simple' will push only the current\n"
>> +   "branch to the same remote branch used by git pull.   A push will\n"
>> +   "only succeed if the remote and local branches have the same name.\n"

while you can see that it is not telling a lie if you read it twice,
"will only succeed if" feels somewhat roundabout.

	... push only the current branch back to the branch of the
	same name, but only if 'git pull' is set to pull from that
	branch. Otherwise the push will fail.

might be an improvement, but I dunno.

> * The warning has been there for a while now. Advanced users have
> already set push.default.  We shouldn't be worried about eating a
> bit of screen real estate for users who didn't yet.

This part I can agree with.

  reply	other threads:[~2013-11-06 19:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04 14:20 [PATCH v3] push: Enhance unspecified push default warning Greg Jacobson
2013-11-03 13:35 ` Greg Jacobson
2013-11-04 18:32   ` Junio C Hamano
2013-11-05 10:16     ` Matthieu Moy
2013-11-05 10:16     ` Matthieu Moy
2013-11-06 19:01       ` Junio C Hamano [this message]
2013-11-06 20:10         ` Junio C Hamano
2013-11-06 22:55           ` Junio C Hamano
2013-11-06 21:49         ` Matthieu Moy
2013-11-06 23:45           ` Jonathan Nieder
2013-11-07 10:52             ` Matthieu Moy
2013-11-07 18:14               ` Junio C Hamano
2013-11-07 18:51                 ` Matthieu Moy
2013-11-08 18:02               ` Junio C Hamano
2013-11-08 18:56                 ` Junio C Hamano
2013-11-08 22:39                 ` Marc Branchaud
2013-11-11 17:02                   ` Junio C Hamano
2013-11-11 17:03                     ` Jonathan Nieder
2013-11-11 17:17                     ` Marc Branchaud
2013-11-11 21:12                     ` Matthieu Moy

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=xmqqk3gl8id0.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=coder5000@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=matthieu.moy@grenoble-inp.fr \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.