bzr ignore --unknown could ignore all untracked files

Bug #355891 reported by Daniel Clemente
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

Some processes create many temporary files which you want ignored. For instance, initialize a branch and add some C source code. Configure and run Makefile, and you have many generated and output files which you can safely ignore. You have already tracked the important files, and all the rest is unwanted.

Since ignoring the unknown files is a common operation, a new option --unknown to the command „ignore“ could do this automatically. Then you could just run „bzr ignore --unknown“ and it would write in .bzrignore each file which was listed under „unknown“ in „bzr status“.

Otherwise you must add each file by hand (with copy+paste) or find patterns that match all files seen in „bzr status“.

bazaar 1.14dev, 4253

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 355891] [NEW] bzr ignore --unknown could ignore all untracked files

On Sun, 2009-04-05 at 22:50 +0000, Daniel Clemente wrote:
>
>
> Since ignoring the unknown files is a common operation, a new option
> --unknown to the command „ignore“ could do this automatically. Then
> you could just run „bzr ignore --unknown“ and it would write
> in .bzrignore each file which was listed under „unknown“ in „bzr
> status“.
>
> Otherwise you must add each file by hand (with copy+paste) or find
> patterns that match all files seen in „bzr status“.

bzr ignore $(bzr unknowns) should do this for you. Adding an option to
do it would make this more discoverable and accessible on non-unix
platforms.

-Rob

Jelmer Vernooij (jelmer)
Changed in bzr:
importance: Undecided → Wishlist
status: New → Triaged
Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.