[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Keep directory in working tree, but exclude from foo.diff.gz



On Fri, 25 Apr 2008 13:34:04 +1000, Ben Finney <bignose+hates-spam@benfinney.id.au> said:

> However:

> ===== $ man dpkg-source [...]  -i[regexp] You may specify a perl
> regular expression to match files you want filtered out of the list of
> files for the diff.  [...] There can only be one active regexp, of
> multiple -i options only the last one will take effect.  [...]

> $ dpkg-source --help [...]  -i[<regexp>] filter out files to ignore
> diffs of (defaults to:
> '(?:^|/).*~$|(?:^|/)\.#.*$|(?:^|/)\..*\.swp$|(?:^|/),,.*(?:$|/.*$)|(?:^|/)(?:DEADJOE|\.cvsignore|\.arch-inventory|\.bzrignore|\.gitignore)$|(?:^|/)(?:CVS|RCS|\.deps|\{arch\}|\.arch-ids|\.svn|\.hg|_darcs|\.git|\.shelf|_MTN|\.bzr(?:\.backup|tags)?)(?:$|/.*$)').
> [...]  =====

> Yikes. So, in order to filter out an additional pattern, I can't just
> say "ignore this pattern as well as the defaults". I have to construct
> a *single* regexp that contains the default pattern *plus* mine, and
> forever diverge from any future changes to the default regexp.

Yes.  However, the "defaults to:" only applies to if you add the "-i"
option with no regexp given.  i.e. if you weren't using "-i" already,
then dpkg-source wasn't ignoring anything in the first place.

-- 
Hubert Chathi <uhoreg@debian.org> -- Jabber: hubert@uhoreg.ca
PGP/GnuPG key: 1024D/124B61FA         http://www.uhoreg.ca/
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA


Reply to: