[xen-tools-dev] [PATCH v2 01/13] Harden .gitignore
Stéphane Jourdois
sjourdois at gmail.com
Sun Jul 18 22:04:11 CEST 2010
From: Stéphane Jourdois <stephane at jourdois.fr>
- Ignore all dotfiles but .gitignore and .hgignore files
- Provide a way to test this file in header
- ChangeLog and debian-files are generated at root
- Ignore patches and orig files
---
.gitignore | 38 +++++++++++++++++++++++++++-----------
1 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/.gitignore b/.gitignore
index 78ce0e5..6c54293 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,28 @@
-.hg
-.hgtags
-ChangeLog
+# Note! Please use 'git ls-files -i --exclude-standard'
+# command after changing this file, to see if there are
+# any tracked files which get ignored after the change.
+
+# all dotfiles
+.*
+# but we _wan't_ those dot-files
+!.gitignore
+!.hgignore
+
+# ChangeLog is generated during make
+/ChangeLog
+
+# those are generated during debian package build
+/build-stamp
+/configure-stamp
+/man
+/debian/files
+/debian/xen-tools
+/debian/xen-tools.debhelper.log
+/debian/xen-tools.substvars
+
+# git-generated patches
+/*.patch
+
+# some backups
*~
-build-stamp
-configure-stamp
-man
-debian/files
-debian/xen-tools
-debian/xen-tools.debhelper.log
-debian/xen-tools.substvars
-t/modules.t
+*.orig
--
1.7.1.1
More information about the xen-tools-dev
mailing list