[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bootstrap botches .gitignore sorting
From: |
Eric Blake |
Subject: |
bootstrap botches .gitignore sorting |
Date: |
Mon, 04 Apr 2011 14:33:13 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- bootstrap botches .gitignore sorting,
Eric Blake <=