From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,BODY_8BITS, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id BD5031F8C6 for ; Mon, 26 Jul 2021 13:57:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233993AbhGZNRD (ORCPT ); Mon, 26 Jul 2021 09:17:03 -0400 Received: from smtprelay02.ispgateway.de ([80.67.31.29]:53008 "EHLO smtprelay02.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbhGZNRC (ORCPT ); Mon, 26 Jul 2021 09:17:02 -0400 Received: from [84.163.73.49] (helo=[192.168.2.202]) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m815N-0004zw-7C; Mon, 26 Jul 2021 15:56:01 +0200 Subject: Re: Files modified, even after: git reset --hard From: Martin To: Chris Torek Cc: Git List References: <4e9b54b4-8e40-7fd3-ae65-d33390f3af43@mfriebe.de> <04f3b300-3ccf-c91b-6406-6a998b473a24@mfriebe.de> <070f7f5e-0e6c-2edc-1403-9265c810df17@mfriebe.de> Message-ID: <5ca837f6-44dd-2b43-32dc-e1e134d18d61@mfriebe.de> Date: Mon, 26 Jul 2021 15:57:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Df-Sender: bWVAbWZyaWViZS5kZQ== Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 26/07/2021 12:31, Martin wrote: > On 26/07/2021 04:59, Chris Torek wrote: >> On Sun, Jul 25, 2021 at 6:34 PM Martin wrote: >>> Actually there is something else. >>> >>> If a file has line-endings that will change, then >>>      git add --renormalize . >>>      git commit -m foo >>> will commit those files. >>> >>> But I am now also getting files, that show modified, but that can >>> not be >>> committed renormalized (0 lines changed). >> >> I believe (but can't demonstrate) that this is a temporary condition. > > I now found one, that does not seem temporary at all... > > git remote -v > origin  git://sourceware.org/git/binutils-gdb.git (fetch) > origin  git://sourceware.org/git/binutils-gdb.git (push) > > Switching to a far away commit > git switch -f --detach master > git rev-list master | wc -l > 93917 > > git status shows no modified files > > > Then switching to  (this is on master branch) > git switch -f --detach a362ee23634 > git rev-list a362ee23634 | wc -l > 4164 > > git status --porcelain=v2 > 1 .M N... 100644 100644 100644 > 9e677a52ae690808165993a0f3f17ac49e3969df > 9e677a52ae690808165993a0f3f17ac49e3969df bfd/Makefile.dos > 1 .M N... 100644 100644 100644 > ff24f19c0b6e0c7fb713c79e8f1765bc22fe7adc > ff24f19c0b6e0c7fb713c79e8f1765bc22fe7adc binutils/Makefile.dos > 1 .M N... 100644 100644 100644 > 1d9541c2f896842d1bafe68ccf0a51e291d66688 > 1d9541c2f896842d1bafe68ccf0a51e291d66688 gas/Makefile.dos > 1 .M N... 100644 100644 100644 > 57fab985680ea151379069abe414bcb590cdd743 > 57fab985680ea151379069abe414bcb590cdd743 ld/Makefile.dos This seems an issue with gitforwindows. I checked on 2 linux distros (git 2.25 and 2.31.1) and both are fine. On Windows I set core.autocrlf false core.fscache false Made a new clone, some (applied config as above), issue still present. Tested with gitforwindow 2.32, 2.31.1 and 2.30.2