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

Re: Committing crimes with NTFS-3G

From
Torsten Bögershausen <tboegi@web.de>
Date
Sep 5, 2024, 19:51 UTC
Message-ID
<20240905195139.GA9644@tb-raspi4>
In-Reply-To
<8a8a7f75-6a2f-4fd9-b3cf-df61129a355a@gaijin.team>
On Tue, Sep 03, 2024 at 08:30:16PM +0300, Roman Sandu wrote:
Side note: Please avoid top-posting here in this list
> .gitattributes is this
> https://github.com/GaijinEntertainment/DagorEngine/blob/main/.gitattributes
> `core.autocrlf` is unset.
That is according to the book, good.
Show 6 quoted lines
>
> core.filemode is false.
>
> `git ls-files --debug` is extremely useful and I am a tiny bit salty that no
> one suggested it before I spent time learning how to parse the index file in
> C =)
No well, I read this as "thanks for the hint"
> But alas, nothing new, see my previous messages (hopefully they are visible
> to you, I am kind of new to mailing lists).
Yes, everything is here.
Show 5 quoted lines
>
> `git ls-files --eol` says that worktree uses crlf (which is expected, I
> checked out the repo under windows), while the index uses lf. Can that be
> the reason for Linux git thinking that the index is always out of date?
> Various dev tools work perfectly fine with crlf'd files on Linux.
Yes, that is not the problem for any performance issues.

I did set up a test, kind of. Exporting a git repo from a Linux NAS to a MacOs laptop, using Samba, and WLAN. A simple `git status` takes 4 seconds for 1800 files. The thing is that Git needs to lstat() each and every file, to find out if it has been changed. And if that lstat() call is slow, then `git status` will be slow.

I don't know, if the fs monitor works for your setup ?
https://git-scm.com/docs/git-fsmonitor--daemon
[snip]
Previous: Roman Sandu
Message 14 of 14 in “Committing crimes with NTFS-3G”
  1. Roman SanduAug 29, 2024
  2. brian m. carlsonAug 30, 2024
  3. Roman SanduAug 30, 2024
  4. brian m. carlsonAug 30, 2024
  5. Roman SanduAug 30, 2024
  6. brian m. carlsonAug 30, 2024
  7. Roman SanduAug 30, 2024
  8. Vito CaputoAug 30, 2024
  9. Johannes SixtAug 30, 2024
  10. Roman SanduAug 30, 2024
  11. Junio C HamanoAug 30, 2024
  12. Torsten BögershausenSep 3, 2024
  13. Roman SanduSep 3, 2024
  14. Torsten BögershausenSep 5, 2024

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.