From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Recommend these .gitconfig settings for git integrity. Date: Sun, 31 Jan 2016 13:48:22 -0800 Organization: UCLA Computer Science Department Message-ID: <56AE8126.9090708@cs.ucla.edu> References: <87a8nlfqj9.fsf@red-bean.com> <83h9ht1o8q.fsf@gnu.org> <87mvrle8ho.fsf@red-bean.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050308080701020808090104" X-Trace: ger.gmane.org 1454276940 27342 80.91.229.3 (31 Jan 2016 21:49:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2016 21:49:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Karl Fogel , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 31 22:48:47 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aPzrS-00054A-Tz for ged-emacs-devel@m.gmane.org; Sun, 31 Jan 2016 22:48:47 +0100 Original-Received: from localhost ([::1]:43398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPzrS-0000sk-8O for ged-emacs-devel@m.gmane.org; Sun, 31 Jan 2016 16:48:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPzrD-0000sQ-Mb for emacs-devel@gnu.org; Sun, 31 Jan 2016 16:48:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPzrC-0006ZL-Gb for emacs-devel@gnu.org; Sun, 31 Jan 2016 16:48:31 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPzr7-0006YI-SX; Sun, 31 Jan 2016 16:48:26 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3C221160F53; Sun, 31 Jan 2016 13:48:24 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id kqQgCp-hBE6t; Sun, 31 Jan 2016 13:48:23 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2E603160F55; Sun, 31 Jan 2016 13:48:23 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SaFsvflFawa0; Sun, 31 Jan 2016 13:48:23 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 072A9160F53; Sun, 31 Jan 2016 13:48:23 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <87mvrle8ho.fsf@red-bean.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199101 Archived-At: This is a multi-part message in MIME format. --------------050308080701020808090104 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Karl Fogel wrote: > Eli Zaretskii writes: >> >I think a better place is admin/notes/git-workflow and >> >http://www.emacswiki.org/emacs/GitForEmacsDevs. CONTRIBUTE's topics >> >are different. > Ah, thank you -- I didn't think of that. Agreed. We shouldn't need to configure fetch.fsckObjects and receive.fsckObjects, as they default to transfer.fsckObjects. I installed the attached patch to try to automate this; I think this'll be more effective. --------------050308080701020808090104 Content-Type: text/x-diff; name="0001-autogen.sh-now-arranges-for-git-to-check-hashes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-autogen.sh-now-arranges-for-git-to-check-hashes.patch" >From b1ccd481738b1427ac0e294f2405a9ebe86c8561 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 31 Jan 2016 13:43:13 -0800 Subject: [PATCH] autogen.sh now arranges for git to check hashes Suggested by Karl Fogel in: http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01802.html * autogen.sh: Do "git config transfer.fsckObjects true". --- autogen.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autogen.sh b/autogen.sh index a63c53c..877bb84 100755 --- a/autogen.sh +++ b/autogen.sh @@ -220,6 +220,11 @@ echo timestamp > src/stamp-h.in || exit ## Configure Git, if using Git. if test -d .git && (git status -s) >/dev/null 2>&1; then + # Check hashes when transferring objects among repositories. + + git config transfer.fsckObjects true || exit + + # Configure 'git diff' hunk header format. git config 'diff.elisp.xfuncname' \ -- 2.5.0 --------------050308080701020808090104--