Skip to content

why isn't a gitignore pattern like deep/deeper matched at every level relative to the directory tree? #2824

Answered by BurntSushi
fabiospampinato asked this question in Q&A
Discussion options

You must be logged in to vote

Which seems its own problem, I wouldn't expect the presence of an empty folder named .git to change how .gitignore files are handled.

It does. From the man page:

       --no-require-git
           When this flag is given, source control ignore files such as
           .gitignore  are  respected  even  if  no  git  repository is
           present.

           By default, ripgrep will  only  respect  filter  rules  from
           source  control  ignore  files when ripgrep detects that the
           search is executed inside a source control  repository.  For
           example, when a .git directory is observed.

           This  flag  relaxes the default restriction. For example, it
…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@BurntSushi
Comment options

@fabiospampinato
Comment options

@fabiospampinato
Comment options

@BurntSushi
Comment options

Answer selected by BurntSushi
@fabiospampinato
Comment options

@BurntSushi
Comment options

@fabiospampinato
Comment options

@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2823 on May 27, 2024 19:00.