bzr commands taking a filename
Martin Pool
mbp at sourcefrog.net
Thu Dec 8 07:15:41 GMT 2005
On 7 Dec 2005, Matthieu Moy <Matthieu.Moy at imag.fr> wrote:
> John A Meinel <john at arbash-meinel.com> writes:
>
> > You could also try a little bit of heuristics. If you have a slash in
> > the filename, then you obviously want an exact path, even though you
> > may be in a subdirectory right now. (But that fails when you are
> > ignoring a file in the current directory, which is part of the
> > problem).
>
> We could imagine
>
> bzr ignore ./Makefile # Ignore THIS Makefile
> bzr ignore Makefile # Ignore all Makefiles
Well, that would be consistent with the patterns in .bzrignore. The
rule would be that if there is a / (or \) in the argument, the relative
path from the tree root is inserted at the front. That makes sense to
me.
Having ignore --pattern FOO would also be ok, but inconsistent with
.bzrignore, so I think I'd prefer what Matthieu says.
--
Martin
More information about the bazaar
mailing list