From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.jhmg.net (smtp.jhmg.net [45.55.176.36]) by sourceware.org (Postfix) with ESMTPS id 899A53858C39 for ; Mon, 27 Dec 2021 23:17:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 899A53858C39 Received: from [192.168.10.7] (c-73-11-123-33.hsd1.or.comcast.net [73.11.123.33]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.jhmg.net (Postfix) with ESMTPSA id 04BEA40103; Mon, 27 Dec 2021 18:17:12 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.jhmg.net 04BEA40103 Message-ID: Date: Mon, 27 Dec 2021 15:17:13 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.4.1 Reply-To: jhg@acm.org Subject: Re: git and filemodes Content-Language: en-US To: Adam Dinwoodie , cygwin@cygwin.com References: <2eef10a5-ad9b-a663-6fe4-896e3805b8ba@jhmg.net> From: Jim Garrison In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2021 23:17:14 -0000 On 12/27/2021 3:13 PM, Adam Dinwoodie wrote: [snip] > This is normal Git behaviour: it doesn't record detailed file > permissions, only presence or absence of an executable bit. It only > ever shows file permissions as 644 (meaning "not executable") or 755 > (meaning "executable"). > > Specifically, the committed version of your .gitignore file is not > executable, but the version in your current working copy is > executable. This is a common side-effect of checking the repository > out using Cygwin's Git, then accessing the repository with native > Windows programs, which includes Git for Windows. Cygwin emulates the > *nix approach of not setting the executable bit unless it's necessary, > whereas native Windows programs almost always set the executable bit > on any file they touch in common with normal Windows application > practice. > > If this behaviour is undesirable for you, I'd recommend either > sticking to using Cygwin editors, or running `git config core.fileMode > false` to instruct Git to ignore the executable bit on the filesystem. Thanks for the detailed explanation, that makes perfect sense. -- Jim Garrison jhg@acm.org