Remove unnecessary patterns and use non-recursive matching rules if possible. Add a comment stating that a separate build directory is preferred, and a small script that shows cleanup opportunities.
Signed-off-by: Florian Weimer <[email protected]> --- .gitignore | 69 +++++++++++++++++++++++++------------------------------------- ChangeLog | 5 +++++ 2 files changed, 33 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index 1eda00b..3fa2b6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,42 +1,29 @@ -#* -*# -*.a -*.gmo -*.o -*.orig -*.os -*.patch -*.pot -*.rej -*.so -*/Makefile.in -*~ -.#* -.deps -.glimpse_* -=* -INSTALL -Makefile +# Only ignore files which end up in the source tree with a separate +# build directory. You can validate the list of rules with: +# +# diff -u <(seq 1 $(wc -l < .gitignore)) \ +# <((git check-ignore -v $(find * -type f) \ +# | grep '^\.gitignore:'; grep -nH ^# .gitignore) \ +# | cut -d : -f 2 | sort -n -u) +# Makefile.in -aclocal.m4 -autom4te.* -backends/*.map -config.h -config.h.in -config.log -config.status -config/ar-lib -config/config.guess -config/config.sub -config/depcomp -config/install-sh -config/missing -config/test-driver -config/ylwrap -configure -elfutils.spec -libcpu/*_dis.h -libdw/known-dwarf.h -po/[email protected] -po/[email protected] -stamp-h1 +/INSTALL +/aclocal.m4 +/autom4te.* +/config.h.in +/config/ar-lib +/config/config.guess +/config/config.sub +/config/depcomp +/config/install-sh +/config/missing +/config/test-driver +/config/ylwrap +/configure +/libcpu/*_dis.h +/libdw/known-dwarf.h +/po/[email protected] +/po/[email protected] +/po/*~ +/po/*.gmo +/po/*.pot diff --git a/ChangeLog b/ChangeLog index a2436ce..8e5800c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-04-15 Florian Weimer <[email protected]> + + * .gitignore: Add cleanup instructions, apply those changes, and + use non-recursive patterns where possible. + 2014-01-21 Mark Wielaard <[email protected]> * NEWS (Version 0.159): Add stack -i. -- 1.9.0
