This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH v2] Clean up .gitignore
- From: Florian Weimer <fweimer at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 15 Apr 2014 16:43:54 +0200
- Subject: [PATCH v2] Clean up .gitignore
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 <fweimer@redhat.com>
---
.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/en@boldquot.po
-po/en@quot.po
-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/en@boldquot.po
+/po/en@quot.po
+/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 <fweimer@redhat.com>
+
+ * .gitignore: Add cleanup instructions, apply those changes, and
+ use non-recursive patterns where possible.
+
2014-01-21 Mark Wielaard <mjw@redhat.com>
* NEWS (Version 0.159): Add stack -i.
--
1.9.0