git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v4 0/5] Disable "git status" comment prefix
Date: Thu, 05 Sep 2013 12:13:44 -0700	[thread overview]
Message-ID: <xmqqhadzhyjb.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <1378374618-31439-1-git-send-email-Matthieu.Moy@imag.fr> (Matthieu Moy's message of "Thu, 5 Sep 2013 11:50:13 +0200")

Matthieu Moy <Matthieu.Moy@imag.fr> writes:

> Compared to v2, this changes essentially:
>
> * The prefix is actually disabled by default in this version. As a
>   consequence, the option is renamed to status.oldStyle.
>
> * Since this is the default, the tests are updated to test the new
>   defaults. In a first patch, I'm setting status.oldStyle=true in test
>   files that require it (to keep the patch short), and the last patch
>   actually updates the test expected results. This was actually useful
>   as I did find (and fix) a few bugs updating the tests:
>
>   - the --columns option was still showing the comment prefix
>
>   - "git commit --dry-run" and failed "git commit" were still
>     displaying comments to stdout.
>
> * The --for-status option is kept as a no-op.

Much nicer.  Will replace and queue.

One caveat, though.  The name "oldStyle" will become problematic,
when we want to remove some wart in the output format long after
this "no comment prefix by default" series lands.  Some people may
expect setting oldStyle=true would give output from 1.8.4 era, while
some others would expect that it would give output from 1.8.5 era
that does not have comment prefix but still has that wart we will
remove down the line.

It is a common mistake to make to think that one is making the final
change to the code and the result of that final change will stay the
latest forever.  I am sure I've done that for a few times and later
regretted them.

  parent reply	other threads:[~2013-09-05 19:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05  9:50 [PATCH v4 0/5] Disable "git status" comment prefix Matthieu Moy
2013-09-05  9:50 ` [PATCH v4 1/5] builtin/stripspace.c: fix broken indentation Matthieu Moy
2013-09-05  9:50 ` [PATCH v4 2/5] wt-status: use argv_array API Matthieu Moy
2013-09-05  9:50 ` [PATCH v4 3/5] submodule summary: ignore --for-status option Matthieu Moy
2013-09-05  9:50 ` [PATCH v4 4/5] status: disable display of '#' comment prefix by default Matthieu Moy
2013-09-05  9:50 ` [PATCH v4 5/5] tests: don't set status.oldStyle file-wide Matthieu Moy
2013-09-05 12:35 ` [PATCH v4 0/5] Disable "git status" comment prefix Matthieu Moy
2013-09-05 19:13 ` Junio C Hamano [this message]
2013-09-05 19:36   ` Matthieu Moy
2013-09-05 23:09     ` Junio C Hamano
2013-09-05 23:23     ` Jeff King
2013-09-06 16:44       ` Matthieu Moy
2013-09-06 16:53       ` Jonathan Nieder
2013-09-06 17:28         ` Matthieu Moy
2013-09-06 18:12           ` Junio C Hamano
2013-09-06 18:43             ` Matthieu Moy
2013-09-06 21:55           ` Jeff King

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=xmqqhadzhyjb.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=Matthieu.Moy@imag.fr \
    --cc=git@vger.kernel.org \
    /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).