bootstrap: preserve git whitelist item sorting
authorEric Blake <eblake@redhat.com>
Tue, 5 Apr 2011 19:53:20 +0000 (13:53 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 5 Apr 2011 20:47:43 +0000 (14:47 -0600)
commitffc66485c39214e3aaf41defe27516c7d063d167
treec0408b76a39660e4fdd41c1a2825ea8fd2420525
parenta2c7be5a2a578bc0b97bcf14e709c458d5f59d7f
bootstrap: preserve git whitelist item sorting

In .gitignore, it is handy to do:

/m4/*
!/m4/file.m4

to whitelist just file.m4 while ignoring all other files.  But
! sorts too early.

* build-aux/bootstrap (sort_patterns): New function.
(insert_sorted_if_absent): Use it to sink ! lines to the bottom.
ChangeLog
build-aux/bootstrap