git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Changing the defaults for send-email / suppress-cc ?

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 1, 2009, 00:21 UTC
Message-ID
<7vsklycct9.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7d1d9c250902281129t1ea0d9d0k796d97bdd0af046d@mail.gmail.com>
Paul Gortmaker <paul.gortmaker@windriver.com> writes:
Show 5 quoted lines
> In light of this, I've simply advised new users to run something like:
>
> git config --global sendemail.suppresscc all
>
> ...just so that they won't accidentally do what I've described in the above.
> Apologies if this has been discussed before; I took a quick scan of my
> archive and didn't see any discussions on it.

I think I've seen discussions in the distant past but not very recently. IIRC some people had exactly the same reaction as you did, and were loud, while others were happy with the default, but weren't as loud.

But loudness depends on how annoyed they are, and unhappy people are louder than others, so we cannot judge much from the loudness alone.

> With the recent thread
> about warning people of non-back compatible changes that will appear
> post 1.6.2 -- I thought perhaps this was a good time to
> mention/consider it.

Unless you are a single project person, or have groups of hosts that share the home directory that is dedicated for working only on a single project, using $HOME/.gitconfig for this is a bad advice to give in general; as I think this really depends on what you are working on.

I do have "sendemail.suppressfrom" and "sendemail.signedoffcc = false" in my repository configuration, but not in global configuration.

My point is that the default does not suit *me* at least. But it may or may not match what you want as a default. I suspect many people are in the same boat as I am.

> I'm not sure what the right thing to do here is -- I suspect if you made
> suppress-cc=all the default, then there would be more experienced users
> that would complain about having to explicitly add a suppress-cc=self to
> get the old behaviour?  Would that be acceptable?

No matter what different default you choose, there will be people who complain about it as long as it is not exactly the default they want.

The only thing I could think of offhand that you could do safely to remedy the situation is to make the command fail until you explicitly set your default via the configuration, but even then, it is not entirely safe.

You will hear from angry people who use their own wrapper script to "git send-email" that gives all necessary options from the command line and now they are forced to add configuration to their repository, even though the config is never used because their script overrides it from the command line.

So, I dunno.
Previous: Paul GortmakerNext: Paul Gortmaker
Message 2 of 10 in “Changing the defaults for send-email / suppress-cc ?”
  1. Paul GortmakerFeb 28, 2009
  2. Junio C HamanoMar 1, 2009
  3. Paul GortmakerMar 1, 2009
  4. send-email: confirm auto cc before sendingJay Soffian, Mar 1, 2009
  5. Sverre RabbelierMar 1, 2009
  6. Nanako ShiraishiMar 1, 2009
  7. Jay SoffianMar 1, 2009
  8. Jay SoffianMar 1, 2009
  9. Jay SoffianMar 1, 2009
  10. Teemu LikonenMar 1, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.