unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Emacs Development <Emacs-devel@gnu.org>
Cc: "Karl Fogel" <kfogel@red-bean.com>,
	"Óscar Fuentes" <ofv@wanadoo.es>, "Eli Zaretskii" <eliz@gnu.org>,
	"Stefan Monnier" <monnier@IRO.UMontreal.CA>
Subject: Re: Recommend these .gitconfig settings for git integrity.
Date: Tue, 2 Feb 2016 00:02:10 -0800	[thread overview]
Message-ID: <56B06282.2050701@cs.ucla.edu> (raw)
In-Reply-To: <83si1cyy3e.fsf@gnu.org>

On 02/01/2016 12:28 PM, Eli Zaretskii wrote:
> It's a general security-related issue

As I understand things it's more general than that. Setting transfer.fsckObjects 
also catches things like transmission and storage errors.

Should we pay the checking overhead to catch these reliability and security 
problems? That's the question. Emacs developers who are using this setting 
report that the overhead is small enough as to not be a significant issue, which 
suggests that the extra checking is a good idea.

> that Emacs shouldn't force on its users.

The script is intended to be run only by Emacs developers, and is optional even 
for developers. It's certainly not forcing anything on Emacs users.


On 02/01/2016 01:40 PM, Stefan Monnier wrote:
> At least not before we lobby the Git crowd to turn it on by default.

Any such lobbying effort could well fail, as the checking overhead can be 
substantial in some projects, which means that changing the default for all 
Git-using projects could well be a bad idea.

Besides, if the idea is a good one for Emacs development, then even if we 
successfully lobby for it to be the Git default it will take quite some time for 
the change to propagate, and in the meantime we win by setting the Git 
configuration appropriately for Emacs. Conversely, if our lobbying effort fails, 
we still win by setting the Git configuration appropriately for Emacs now.


On 02/01/2016 12:34 PM, Óscar Fuentes wrote:
> The script I use for building Emacs contains
>
> git clean -f -d -x
> ./autogen.sh

Surely this script is unaffected by the benign git config settings that 
autogen.sh installs. However, as you're worried about the possibility, I added 
support for a new option to autogen.sh, so if you change that script's autogen 
line to:

    ./autogen.sh --git-config=false

then autogen.sh won't use "git config" and will not install the setting that 
started this thread.

> How about mentioning (not applying) the recommended settings on autogen.sh

That would make autogen.sh less convenient to use. I largely ignore autogen.sh's 
output, and I expect it to work without my having to fiddle with Git 
configuration or hooks by hand afterwards. Besides, autogen.sh has been 
configuring Git for quite some time with no practical problems reported; why 
change something that isn't broken?

> How those settings benefit Emacs development?

Assuming you're asking about the recent change, there is some justification for 
it in the first part of this email.



  parent reply	other threads:[~2016-02-02  8:02 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-31 20:22 Recommend these .gitconfig settings for git integrity Karl Fogel
2016-01-31 20:35 ` Eli Zaretskii
2016-01-31 21:37   ` Karl Fogel
2016-01-31 21:48     ` Paul Eggert
2016-02-01 15:42       ` Karl Fogel
2016-02-01 16:01         ` Óscar Fuentes
2016-02-01 16:24           ` Stefan Monnier
2016-02-01 16:39             ` Karl Fogel
2016-02-01 19:12               ` Stefan Monnier
2016-02-01 19:56                 ` Paul Eggert
2016-02-01 20:28                   ` Eli Zaretskii
2016-02-01 21:40                     ` Stefan Monnier
2016-02-02  8:02                     ` Paul Eggert [this message]
2016-02-02  8:17                       ` John Wiegley
2016-02-02 12:58                       ` Stefan Monnier
2016-02-02 15:49                       ` Óscar Fuentes
2016-02-02 17:55                         ` Paul Eggert
2016-02-02 18:48                           ` Óscar Fuentes
2016-02-03  7:31                             ` Paul Eggert
2016-02-03 16:20                               ` Óscar Fuentes
2016-02-03 18:10                                 ` Paul Eggert
2016-02-03 20:50                                   ` Óscar Fuentes
2016-02-04  3:53                                     ` Stefan Monnier
2016-02-02 23:22                           ` Karl Fogel
2016-02-03  0:20                             ` Lars Ingebrigtsen
2016-02-03  2:16                             ` John Wiegley
2016-02-03  2:26                               ` Paul Eggert
2016-02-03  6:35                                 ` John Wiegley
2016-02-03 15:47                                 ` Eli Zaretskii
2016-02-03 17:40                                   ` Paul Eggert
2016-02-03 17:52                                     ` Eli Zaretskii
2016-02-03 18:04                                       ` Paul Eggert
2016-02-04  0:20                                         ` Lars Ingebrigtsen
2016-02-02 16:19                       ` Eli Zaretskii
2016-02-01 18:39             ` John Wiegley
2016-02-01 16:35           ` Paul Eggert
2016-02-01 16:51             ` Óscar Fuentes
2016-02-01 17:40               ` Paul Eggert
2016-02-01 20:34                 ` Óscar Fuentes
2016-02-01 18:09               ` Karl Fogel
2016-02-01 20:56                 ` Óscar Fuentes
2016-02-01 21:07                   ` Karl Fogel
2016-02-02 10:30                 ` Tom
2016-02-02 15:37                   ` Paul Eggert
2016-02-02 17:24                     ` Tom
2016-02-02 17:54                       ` Paul Eggert
2016-02-01 20:50             ` Karl Fogel

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56B06282.2050701@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=Emacs-devel@gnu.org \
    --cc=eliz@gnu.org \
    --cc=kfogel@red-bean.com \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=ofv@wanadoo.es \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).