GNU bug report logs - #42501
feature request: exclude-vcs option

Previous Next

Package: grep;

Reported by: Steve Ward <planet36 <at> gmail.com>

Date: Fri, 24 Jul 2020 01:33:02 UTC

Severity: wishlist

Full log


Message #14 received at 42501 <at> debbugs.gnu.org (full text, mbox):

From: Collin Funk <collin.funk1 <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 42501 <at> debbugs.gnu.org
Subject: Re: bug#42501: feature request: exclude-vcs option
Date: Sat, 06 Jul 2024 13:20:28 -0700
Hi Paul,

Paul Eggert <eggert <at> cs.ucla.edu> writes:

> Yes, it's a bit of a puzzle. But for Git shouldn't we exclude only
> .git, and not .gitignore, .gitattributes, and .gitmodules? Normally
> these files are under Git control so "git grep" will search them, so
> shouldn't grep --exclude-vcs also search them? Similarly for
> .cvsignore, .hgignore, .hgtags.

I was basing it off the behavior of GNU tar. Doesn't --exclude-vcs there
ignore .gitignore, etc?

Note that the output of --help would make it seems otherwise. But when
tar'ing a local git clone I don't have a .gitignore in it.

$ tar --help | grep 'exclude-vcs'
      --exclude-vcs          exclude version control system directories
      --exclude-vcs-ignores  read exclude patterns from the VCS ignore files

Collin




This bug report was last modified 1 year and 41 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.