Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-06 Thread Jeff King
On Fri, Sep 06, 2013 at 07:28:43PM +0200, Matthieu Moy wrote: > >> FWIW, I had the same thought as Junio. I much prefer something like > >> status.displayCommentPrefix for clarity and future-proofing. > > > > Sounds fine, but I don't understand why we'd want this to be an option > > with a future

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-06 Thread Matthieu Moy
Junio C Hamano writes: > Actually, "nothing added ..." is not a part of status proper; it > will be clear if you run the command with comment prefix, whose > output may end like so: > > # Untracked files: > # (use "git add ..." to include in what will be committed) > # > #

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-06 Thread Junio C Hamano
Matthieu Moy writes: >>> Untracked files: >>> t/foo >>> test-obj-pool >>> test-string-pool >>> test-treap >>> test-url-normalize >>> >>> nothing added to commit but untracked files present >> >> The added blank line before "nothing added" soun

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-06 Thread Matthieu Moy
Jonathan Nieder writes: > Jeff King wrote: >> On Thu, Sep 05, 2013 at 09:36:47PM +0200, Matthieu Moy wrote: > >>> I'm fine with any name actually (since it is enabled by default, people >>> don't need to know the name to benefit from the new output). Maybe >>> status.displayCommentPrefix was the

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-06 Thread Jonathan Nieder
Jeff King wrote: > On Thu, Sep 05, 2013 at 09:36:47PM +0200, Matthieu Moy wrote: >> I'm fine with any name actually (since it is enabled by default, people >> don't need to know the name to benefit from the new output). Maybe >> status.displayCommentPrefix was the best name after all. > > FWIW, I

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-06 Thread Matthieu Moy
Jeff King writes: > # and have 472 and 59 different commits each, respectively. > # > # Untracked files: [...] > and have 472 and 59 different commits each, respectively. > Untracked files: Indeed, I forgot the else branch in wt_status_print_tracking: if (s->display_comment_ch

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-05 Thread Jeff King
On Thu, Sep 05, 2013 at 09:36:47PM +0200, Matthieu Moy wrote: > Junio C Hamano writes: > > > 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 m

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-05 Thread Junio C Hamano
Matthieu Moy writes: > Junio C Hamano writes: > >> 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 giv

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-05 Thread Matthieu Moy
Junio C Hamano writes: > 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

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-05 Thread Junio C Hamano
Matthieu Moy 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,

Re: [PATCH v4 0/5] Disable "git status" comment prefix

2013-09-05 Thread Matthieu Moy
Oops, this series forgot to update t7512-status-help.sh, which now fails. I'll send a reroll that updates it later (patch below). diff --git a/t/t7512-status-help.sh b/t/t7512-status-help.sh index 31a798f..0688d58 100755 --- a/t/t7512-status-help.sh +++ b/t/t7512-status-help.sh @@ -25,18 +25,18 @

[PATCH v4 0/5] Disable "git status" comment prefix

2013-09-05 Thread Matthieu Moy
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 i