Optionally sort .bzrignore

Bug #693136 reported by Andrea Corbellini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

To keep my .bzrignore files clean and easier to maintain, I always sort is using `sort`. It'd be useful for me if Bazaar could sort it automatically every time I run `bzr ignore <something>`.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 693136] [NEW] Automatically sort .bzrignore

On Tue, 2010-12-21 at 18:55 +0000, Andrea Corbellini wrote:
> Public bug reported:
>
> To keep my .bzrignore files clean and easier to maintain, I always sort
> is using `sort`. It'd be useful for me if Bazaar could sort it
> automatically every time I run `bzr ignore <something>`.
It would be nice to support this, but I'm not sure if it should be the
default. I know of projects who comment their ignore file and group
items.

Cheers,

Jelmer

Revision history for this message
Robert Collins (lifeless) wrote :

A plugin could do this easily.

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: Automatically sort .bzrignore

I agree with Jelmer, this should not be the default.
But a configuration option is perfectly acceptable.

summary: - Automatically sort .bzrignore
+ Optionally sort .bzrignore
Changed in bzr:
status: New → Confirmed
importance: Undecided → Wishlist
tags: added: easy ignore ui
Revision history for this message
Max Bowsher (maxb) wrote :

Alternatively, 'bzr ignore foo' could first check whether the .bzrignore is in sorted order - if it is, add the new entry and sort - if not, add at end.

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.