Code Monkey home page Code Monkey logo

Comments (1)

BurntSushi avatar BurntSushi commented on June 7, 2024

The man documents -u as being equivalent to --no-ignore, and also from the man page:

       --no-ignore
           When set, ignore files such as .gitignore, .ignore and .rgignore
           will  not  be  respected. This implies --no-ignore-dot, --no-ig‐
           nore-exclude, --no-ignore-global, --no-ignore-parent  and  --no-
           ignore-vcs.

           This  does  not  imply --no-ignore-files, since --ignore-file is
           specified explicitly as a command line argument.

           When given only once, the -u/--unrestricted flag is identical in
           behavior to this flag and can be considered an  alias.  However,
           subsequent -u/--unrestricted flags have additional effects.

           This flag can be disabled with --ignore.

So basically, --no-ignore disables all ignore files except for --ignore-file. The thinking there is --ignore-file is being explicitly specified on the CLI (or config in this case), and so it shouldn't be overridden.

Unfortunately I don't think I'm willing to add a fourth -u or a --no-ignore-all. Both of those things seem like pretty incredible complications. There are already way too many --no-ignore-* flags, and having both --no-ignore and --no-ignore-all just seems pretty whacky to me unfortunately.

I'm not quite sure how to address your use case unfortunately. I'm tempted to make --no-ignore imply --no-ignore-files (or at least, to any such --ignore-file flags that come before --no-ignore), but I'm worried about that being a compatibility hazard for folks that rely on --no-ignore not disabling --ignore-file.

from ripgrep.

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.