Jim Meyering wrote about modifications done to .gitignore files: > I've Cc'd bug-gnulib, since gnulib-tool appears > to be doing it. > > I notice that some of your differences appear to be due to sorting > with a different locale than I use. That implies there's a second > problem: perhaps one of gnulib-tool's uses of sort is not prefixed > with LC_ALL=C.
In both cases, the problem lies in the 'bootstrap' script, not in 'gnulib-tool'. gnulib-tool does only two things with the .gitignore files: - It adds added files, at the end of the .gitignore file. - It removes removed files from the list. See gnulib-tool lines 5312..5319: mv -f "$destdir/$dir$ignore" "$destdir/$dir$ignore"~ ... { cat "$destdir/$dir$ignore"~ sed -e "s|^|$anchor|" < "$tmp"/ignore-added } | sed -f "$tmp"/sed-ignore-removed \ > "$destdir/$dir$ignore" gnulib-tool does *not* add blank lines. gnulib-tool does *not* sort the files. gnulib-tool preserves comments in the files. Bruno -- In memoriam Mihovil Pavlek Miškina <http://en.wikipedia.org/wiki/Mihovil_Pavlek_Miškina>