Comment 6 for bug 3780

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 3780] Re: 'bzr ignore' in subdirectory should prepend relative path

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Wilbur wrote:
> John, Martin, et al:
>
> 2. Jules does a find of certain files he wants to ignore and notices that in a particular subdirectory of his branch a certain filetype appears. He types
> ``bzr ignore /absolute/path/from/find/*.filetype`` and, since it is in his branch, a branch-root-relative pattern is added to the ignore file. (Advantage: Jules can select/copy and paste the path from the find output directly into his command line without having to trim to his branch base directory.)

I'd like to propose that we not do this. I would like it to be a
branch-root-relative filename.

I think the earlier problem of ignoring multiple files is that we were
trying to make the ignore command handle both filenames and patterns.

An ignore command that just does filenames works better with unix
commandline tools than an ignore command that supports patterns. (This
is particularly true when a filename includes square brackets).

When people want to edit their patterns, it's probably easier to edit
.bzrignore than to run "bzr ignore". Or they can run "bzr ignore
- --pattern", if you prefer.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFNu8x0F+nu1YWqI0RAvYsAJ9MpU3LogCbFLLyZigss2LDYwjOfwCggzLV
X60NLS5ovJffCx5Nn5NjZ7A=
=Ci1n
-----END PGP SIGNATURE-----