From: Christopher Tiwald <christiwald@gmail.com>
To: git@vger.kernel.org
Cc: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
Junio C Hamano <gitster@pobox.com>,
peff@peff.net, zbyszek@in.waw.pl
Subject: Re: [PATCH] push: Provide situational hints for non-fast-forward errors
Date: Wed, 14 Mar 2012 12:40:57 -0400 [thread overview]
Message-ID: <20120314164057.GD3558@gmail.com> (raw)
In-Reply-To: <20120314142752.GD28595@in.waw.pl>
On Wed, Mar 14, 2012 at 03:27:52PM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Mar 14, 2012 at 02:00:38PM +0100, Matthieu Moy wrote:
> > Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> writes:
> >
> > > I think that having three different config keys for the three
> > > different advices makes sense, because the advices will be displayed
> > > at different times.
> >
> > I don't think it really makes sense to be such fine-grained. We already
> > have 6 different advices, so an advance user who do not want them need
> > to set these 6 variables. I think we want to keep this number relatively
> > low.
> >
> > The advice messages do not point explicitely to the way to disable them,
> > so users who know how to set advice.* are users who know a little about
> > configuration files, and who read the docs.
>
> Elsewhere in this thread it was proposed to add an actual 'git config'
> command to the advice.
After considering it, I tend to agree that three different config keys
is overkill. I feel like users who disable advice are doing it because
they find the messages annoying, not because they've mastered that
particular situation and no longer need the reminder. Forcing them to
disable three different options to get an advice-less 'git push' seems
like it'd just be irritating.
I could be wrong about that. Perhaps users who graduate workflows as you
described above are more common? I don't disable any advice locally and
thus can't speak well to what motivates that decision.
>
> > Instead of having too
> > fine-grained configuration variables, we can have a better doc,
> > explaining shortly the 3 possible cases under advice.nonfastforward in
> > config.txt. The user who disable the advice can read the doc (I usually
> > think that "users don't read documentation" is a better assumption, but
> > since the user knows about the name of the variable, it is OK here).
> >
> > Also, if I read correctly the patch, the old variable is left in the doc
> > and in advice.{c,h}, but is no longer used. This means old-timers who
> > have set it will see the message poping-up again after they upgrade,
> > which I think is inconveinient for them.
>
> So it seems that the old variable should be respected, not to annoy
> "old-timers".
I hadn't considered users who already have the variable set. I'll
correct for that. I'll also attempt to improve the doc for
advice.nonfastforward.
--
Christopher Tiwald
next prev parent reply other threads:[~2012-03-14 16:41 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-13 23:22 [PATCH] push: Provide situational hints for non-fast-forward errors Christopher Tiwald
2012-03-14 4:27 ` Junio C Hamano
2012-03-14 12:14 ` Zbigniew Jędrzejewski-Szmek
2012-03-14 13:00 ` Matthieu Moy
2012-03-14 14:27 ` Zbigniew Jędrzejewski-Szmek
2012-03-14 16:40 ` Christopher Tiwald [this message]
2012-03-15 8:54 ` Clemens Buchacher
2012-03-15 18:06 ` Junio C Hamano
2012-03-16 8:19 ` Matthieu Moy
2012-03-14 14:48 ` Christopher Tiwald
2012-03-14 14:53 ` Christopher Tiwald
2012-03-14 9:06 ` Matthieu Moy
2012-03-14 15:52 ` Christopher Tiwald
2012-03-14 17:26 ` Junio C Hamano
2012-03-16 5:36 ` Junio C Hamano
2012-03-16 9:10 ` Clemens Buchacher
2012-03-16 12:03 ` Junio C Hamano
2012-03-16 17:20 ` Christopher Tiwald
2012-03-16 18:07 ` Junio C Hamano
2012-03-16 22:00 ` Junio C Hamano
2012-03-16 21:41 ` Clemens Buchacher
2012-03-16 21:53 ` Junio C Hamano
2012-03-16 22:01 ` Clemens Buchacher
2012-03-16 22:10 ` Junio C Hamano
2012-03-17 17:10 ` [fixup PATCH] " Zbigniew Jędrzejewski-Szmek
2012-03-17 18:46 ` Christopher Tiwald
2012-03-17 19:42 ` Zbigniew Jędrzejewski-Szmek
2012-03-19 0:15 ` Junio C Hamano
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=20120314164057.GD3558@gmail.com \
--to=christiwald@gmail.com \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=zbyszek@in.waw.pl \
/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).