[libvirt] [libvirt-snmp][PATCH] Created .gitignore to ignore generated/compiled files.

I've forgotten to add .gitignore to let git ignore some garbage. --- .gitignore | 27 +++++++++++++++++++++++++++ src/.gitignore | 10 ++++++++++ 2 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 .gitignore create mode 100644 src/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4821fb --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +#*# +*.#*# +*.a +*.exe +*.gcda +*.gcno +*.gcov +*.o +*.orig +*.rej +*~ +.git +.git-module-status +/Makefile +/Makefile.in +/aclocal.m4 +/autom4te.cache/ +/config.h +/config.h.in +/config.log +/config.status +/configure +/depcomp +/install-sh +/libvirt-snmp.spec +/missing +/stamp-h1 diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..2c8801e --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,10 @@ +Makefile +Makefile.in +.deps +.libs +*.lo +*.loT +*.la +*.exe +*.cov +/libvirtMib_subagent -- 1.7.3.5

On 02/09/2011 06:48 AM, Michal Privoznik wrote:
I've forgotten to add .gitignore to let git ignore some garbage.
--- .gitignore | 27 +++++++++++++++++++++++++++ src/.gitignore | 10 ++++++++++
.gitignore can be hierarchical. I prefer to have a single ignore file at the top level, rather than one per directory.
+++ b/.gitignore @@ -0,0 +1,27 @@ +.git
This one shouldn't be needed (git automatically ignores its own directory).
+.git-module-status
This one should probably be anchored.
+/Makefile +/Makefile.in
Un-anchor these, then they will apply recursively (which is what you want, for ignoring it in src/ as well).
+++ b/src/.gitignore @@ -0,0 +1,10 @@ +Makefile +Makefile.in +.deps +.libs +*.lo +*.loT +*.la +*.exe +*.cov +/libvirtMib_subagent
Most of these should be unanchored patterns at the top level; the last line should be /src/libvirtMib_subagent at the top level, then you don't need this file. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Michal Privoznik