On 19 Oct 2006, Aaron Bentley <email address hidden> wrote:
> 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.
I'm not sure I understand. (In retrospect I'm not sure if Jules in
Richard's example is meant to be giving a filename or a quoted pattern
or an unquoted pattern, but since he talks of copy/pasting the output of
find I assume it is a file.)
On 19 Oct 2006, Aaron Bentley <email address hidden> wrote: 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.) root-relative filename.
> 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/
>
> I'd like to propose that we not do this. I would like it to be a
> branch-
>
> 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.
I'm not sure I understand. (In retrospect I'm not sure if Jules in
Richard's example is meant to be giving a filename or a quoted pattern
or an unquoted pattern, but since he talks of copy/pasting the output of
find I assume it is a file.)
--
Martin