Running bootstrap updates .gitignore to sort it.  However, it sorts
lines with ! first, even though they should be last to be effective.
For example, on libvirt, we have:

/po/
!/po/POTFILES.in

to quickly ignore all generated files under po, but then whitelist the
version-controlled POTFILES.in file also in that directory.

I haven't yet looked at how hard it would be to fix this; perhaps it
would be sufficient to write a simple sed script in
insert_sorted_if_absent() after the initial sort which appends all lines
starting with ! into hold space, then dumps hold space after all other
lines.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to