default ignores don't ignore '.swp'

Martin Pool mbp at
Mon Jan 9 01:33:45 GMT 2006

On Sat, 2006-01-07 at 13:03 -0600, John Arbash Meinel wrote:
> If you do "bzr diff | vim -" vim will create a swap file named '.swp'
> because it does not have a name to mimic.
> The current default ignores do not match this, so it will show up as an
> unknown (and will be added by 'bzr add').

That's not good.

> I think we just need to change the pattern: '.*.sw[nop]', to '.*sw[nop]'
> or '*.sw[nop]'. Either that, or we just add an extra pattern '.sw[nop]'.
> (I have only seen it get to 'n' when you have a bunch of unnamed files).
> So in one sense I would recommend changing the defaults to
> '.*.sw[op]', '.sw[nop]'

Yes, I think that's probably best.  I'll add that.  I'm also going to
fix, which says that shouldn't be on the default list.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : 

More information about the bazaar mailing list