GithubHelp home page GithubHelp logo

Comments (5)

MartinFillon avatar MartinFillon commented on May 29, 2024

Well, eza goal is to not interfer with file contents, and never read, modify, open, a file. As to follow this mindset I think this idea will not be implemented for the moment.

from eza.

daviessm avatar daviessm commented on May 29, 2024

Well, eza goal is to not interfer with file contents, and never read, modify, open, a file.

Except .gitignore, right?

from eza.

MartinFillon avatar MartinFillon commented on May 29, 2024

Except .gitignore, right?

Not really the ignoring is made by reading the status using libgit2.

from eza.

daviessm avatar daviessm commented on May 29, 2024

Yes, libgit2 does that by reading any .gitignore files it sees. We can't claim we never read files if we're just depending on another crate to do it for us. See below strace output of exa --git-ignore and stat .gitignore which shows the atime updated when eza ran.

newfstatat(AT_FDCWD, "/home/steven/code/rust/eza/.gitignore", {st_mode=S_IFREG|0644, st_size=449, ...}, 0) = 0
openat(AT_FDCWD, "/home/steven/code/rust/eza/.gitignore", O_RDONLY|O_CLOEXEC) = 5
read(5, "# Nix Flake stuff\nresult\n\n# Gene"..., 449) = 449
close(5)                                = 0
steven$ stat .gitignore
  File: .gitignore
  Size: 449             Blocks: 8          IO Block: 4096   regular file
Device: 0,771   Inode: 2038269     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  steven)   Gid: ( 1000/  steven)
Access: 2024-01-13 17:54:28.184986001 +0000
Modify: 2023-11-14 18:12:35.983333360 +0000
Change: 2023-11-14 18:12:35.983333360 +0000
 Birth: 2023-11-14 18:12:35.983333360 +0000

from eza.

MartinFillon avatar MartinFillon commented on May 29, 2024

well I thought it was doing it with the status as I am doing on the mercurial poc thats my bad I guess

from eza.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.