threads / discuss / 52774

Re: Git tedious verbosity

Subject: Re: Git tedious verbosity

## tl;dr

10 messages between Feb 10, 2020 and Feb 13, 2020.

replies: 9people: 6as markdown or json

Abhishek Kumar· Feb 10, 2020, 21:00 UTC · lore
Greetings Aleksey
You can look into using `--short` and `--porcelain` flags.
> Git offered enabling/disabling advice by using the 'advice.*' key in the configuration.

Read up on this StackOverflow question on "How to turn off the help hints in git output?" [1]. These should do the trick, but feel free to elaborate if you need something more specific.

Regards Abhishek

[1]: https://stackoverflow.com/q/55463863
Aleksey Midenkov· Feb 11, 2020, 14:19 UTC · re: Abhishek Kumar · lore
Hi Abhishek!
Nice info, thanks. Does that disable maintenance messages like:
Updated 1 path from the index

Or gc about garbage collection? Actually bad defaults is big problem developers undeservedly ignore. You can control everything but you have to switch hundreds of options, because software defaults are oriented on dumbest user. Let's overcome this bad tendency and satisfy smartest users, not the dumbest ones. Unix was always terse system which provided little to no output by default. Let's honor that good tradition and not submit to "Google-Got-It" virus.

On Tue, Feb 11, 2020 at 12:01 AM Abhishek Kumar <abhishekkumar8222@gmail.com> wrote:

Show 15 quoted lines
>
> Greetings Aleksey
>
> You can look into using `--short` and `--porcelain` flags.
>
> > Git offered enabling/disabling advice by using the 'advice.*' key in the configuration.
>
> Read up on this StackOverflow question on "How to turn off the help
> hints in git output?" [1]. These should do the trick, but feel free to
> elaborate if you need something more specific.
>
> Regards
> Abhishek
>
> [1]: https://stackoverflow.com/q/55463863

-- All the best,

Aleksey Midenkov @midenok

Andrew Clayton· Feb 11, 2020, 19:08 UTC · re: Aleksey Midenkov · lore

On Tue, 11 Feb 2020 17:19:53 +0300 Aleksey Midenkov <midenok@gmail.com> wrote:

Show 7 quoted lines
> Or gc about garbage collection? Actually bad defaults is big problem
> developers undeservedly ignore. You can control everything but you
> have to switch hundreds of options, because software defaults are
> oriented on dumbest user. Let's overcome this bad tendency and satisfy
> smartest users, not the dumbest ones. Unix was always terse system
> which provided little to no output by default. Let's honor that good
> tradition and not submit to "Google-Got-It" virus.

I've been using Git for over ten years so hopefully I'm not the *dumbest* user, but I still appreciate the various tips and hints Git provides...

Don't really see what the problem with them is and it seems you can quieten them if they really bother you that much...

Andrew
Jeff King· Feb 11, 2020, 19:55 UTC · re: Aleksey Midenkov · lore
On Tue, Feb 11, 2020 at 05:19:53PM +0300, Aleksey Midenkov wrote:
> Nice info, thanks. Does that disable maintenance messages like:
> 
> Updated 1 path from the index

I don't think it does. Usually how this works is that we add new messages which we think might be helpful, enable them by default (since users aren't likely to find out about them if they never see them!), and then if they turn out to be annoying or verbose, add an advice.* config option to allow people to avoid them.

The message quoted above is a relatively new one, and I don't think it's hit that third step yet. Patches welcome. :)

Show 7 quoted lines
> Or gc about garbage collection? Actually bad defaults is big problem
> developers undeservedly ignore. You can control everything but you
> have to switch hundreds of options, because software defaults are
> oriented on dumbest user. Let's overcome this bad tendency and satisfy
> smartest users, not the dumbest ones. Unix was always terse system
> which provided little to no output by default. Let's honor that good
> tradition and not submit to "Google-Got-It" virus.

The goal of the process above is to find a balance between experienced and inexperienced users. We try to be helpful to one, but provide options for the other to customize.

-Peff
Jeff King· Feb 11, 2020, 19:56 UTC · re: Jeff King · lore
On Tue, Feb 11, 2020 at 02:55:49PM -0500, Jeff King wrote:
Show 14 quoted lines
> On Tue, Feb 11, 2020 at 05:19:53PM +0300, Aleksey Midenkov wrote:
> 
> > Nice info, thanks. Does that disable maintenance messages like:
> > 
> > Updated 1 path from the index
> 
> I don't think it does. Usually how this works is that we add new
> messages which we think might be helpful, enable them by default (since
> users aren't likely to find out about them if they never see them!), and
> then if they turn out to be annoying or verbose, add an advice.* config
> option to allow people to avoid them.
> 
> The message quoted above is a relatively new one, and I don't think it's
> hit that third step yet. Patches welcome. :)

Oh, and if you want to see the complete list, look for "advice.*" in "git help config".

-Peff
Sergey Organov· Feb 12, 2020, 04:34 UTC · re: Jeff King · lore
Jeff King <peff@peff.net> writes:
Show 19 quoted lines
> On Tue, Feb 11, 2020 at 02:55:49PM -0500, Jeff King wrote:
>
>> On Tue, Feb 11, 2020 at 05:19:53PM +0300, Aleksey Midenkov wrote:
>> 
>> > Nice info, thanks. Does that disable maintenance messages like:
>> > 
>> > Updated 1 path from the index
>> 
>> I don't think it does. Usually how this works is that we add new
>> messages which we think might be helpful, enable them by default (since
>> users aren't likely to find out about them if they never see them!), and
>> then if they turn out to be annoying or verbose, add an advice.* config
>> option to allow people to avoid them.
>> 
>> The message quoted above is a relatively new one, and I don't think it's
>> hit that third step yet. Patches welcome. :)
>
> Oh, and if you want to see the complete list, look for "advice.*" in
> "git help config".
It says:
   All advice.* variables default to true, and you can tell Git that you
   do not need help by setting these to false:

If there were an option to set that default to 'false' (advice.default maybe?), it'd have answered the demands of the experts, I think.

-- Sergey
Junio C Hamano· Feb 12, 2020, 17:28 UTC · re: Sergey Organov · lore
Sergey Organov <sorganov@gmail.com> writes:
Show 9 quoted lines
> It says:
>
>    All advice.* variables default to true, and you can tell Git that you
>    do not need help by setting these to false:
>
> If there were an option to set that default to 'false' (advice.default
> maybe?), it'd have answered the demands of the experts, I think.
>
> -- Sergey

This was recently discussed. A quick search in the list archive would have found this thread, for example:

  https://lore.kernel.org/git/xmqqwoa122h1.fsf@gitster-ct.c.googlers.com/
Sergey Organov· Feb 13, 2020, 04:45 UTC · re: Junio C Hamano · lore
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> Sergey Organov <sorganov@gmail.com> writes:
>
>> It says:
>>
>>    All advice.* variables default to true, and you can tell Git that you
>>    do not need help by setting these to false:
>>
>> If there were an option to set that default to 'false' (advice.default
>> maybe?), it'd have answered the demands of the experts, I think.
>>
>> -- Sergey
>
> This was recently discussed.  A quick search in the list archive
> would have found this thread, for example:
>
>   https://lore.kernel.org/git/xmqqwoa122h1.fsf@gitster-ct.c.googlers.com/

Thanks for pointing! Still ability to configure the default looks both simpler and more flexible to me.

-- Sergey
Junio C Hamano· Feb 12, 2020, 17:36 UTC · re: Sergey Organov · lore
Sergey Organov <sorganov@gmail.com> writes:
Show 7 quoted lines
> It says:
>
>    All advice.* variables default to true, and you can tell Git that you
>    do not need help by setting these to false:
>
> If there were an option to set that default to 'false' (advice.default
> maybe?), it'd have answered the demands of the experts, I think.

Well, just like newbies won't stay to be newbies forever (and that is why you can disable advice.frotz once you learned about frotz), what you call "experts" won't stay to be experts, either. A new and backward incompatible way to work may be introduced and a new advice message to guide _everybody_ (including those who thought they were already experts) may have to be introduced, and turning off all advice.* variables, even the ones that you haven't seen, would hurt them.

So...
Sergey Organov· Feb 13, 2020, 04:30 UTC · re: Junio C Hamano · lore
Junio C Hamano <gitster@pobox.com> writes:
Show 18 quoted lines
> Sergey Organov <sorganov@gmail.com> writes:
>
>> It says:
>>
>>    All advice.* variables default to true, and you can tell Git that you
>>    do not need help by setting these to false:
>>
>> If there were an option to set that default to 'false' (advice.default
>> maybe?), it'd have answered the demands of the experts, I think.
>
> Well, just like newbies won't stay to be newbies forever (and that
> is why you can disable advice.frotz once you learned about frotz),
> what you call "experts" won't stay to be experts, either.  A new and
> backward incompatible way to work may be introduced and a new advice
> message to guide _everybody_ (including those who thought they were
> already experts) may have to be introduced, and turning off all
> advice.* variables, even the ones that you haven't seen, would hurt
> them.

By "experts" here, in the context of particular discussion, I meant Linux/UNIX experts who are used to tools being silent, unless verbosity is explicitly requested (typical --verbose,-v), or at least having a simple way to make them silent (typical --quiet,-q).

>> So...
So in fact this has little to do with git proficiency.
-- Sergey

← back to recent threads