bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add .gitignore everywhere based on .cvsignore


From: Joel E. Denny
Subject: [PATCH] Add .gitignore everywhere based on .cvsignore
Date: Mon, 14 Jul 2008 06:31:40 -0400 (EDT)

I'm thinking of pushing the following commit to make "git status" useful.  
I hesitate in case someone knows of some git best practice that I'm 
missing.

I mostly copied each .gitignore from its corresponding .cvsignore.  In 
some cases, I added some files that cvs ignores by default, such as "*.o".

In all cases, I preceded every entry with a "/" so that, as with cvs, it 
does not apply recursively to subdirectories.  For example, I want git 
status to tell me about any new a.out or bison-* or Makefile I have lying 
around in some subdirectory even though the top-level .gitignore says to 
ignore them.

We can try to maintain the .cvsignore files in parallel for the sake of 
the users who want the cvs emulation.  We could add a script to keep them 
in sync, but I'm more inclined to just let users report problems when we 
forget an entry.  Maybe this will motivate them to learn git.

>From 0f1d6f10d76a4510cc179ee0bce7a2fd18019069 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Mon, 14 Jul 2008 06:06:26 -0400
Subject: [PATCH] Add .gitignore everywhere based on .cvsignore.

* .gitignore: New.
* build-aux/.gitignore: New.
* data/.gitignore: New.
* doc/.gitignore: New.
* etc/.gitignore: New.
* examples/.gitignore: New.
* examples/calc++/.gitignore: New.
* lib/.gitignore: New.
* m4/.gitignore: New.
* po/.gitignore: New.
* runtime-po/.gitignore: New.
* src/.gitignore: New.
* tests/.gitignore: New.
---
 .gitignore                 |   29 ++++++++++++
 ChangeLog                  |   17 +++++++
 build-aux/.gitignore       |   16 +++++++
 data/.gitignore            |    2 +
 doc/.gitignore             |   24 ++++++++++
 etc/.gitignore             |    3 +
 examples/.gitignore        |    2 +
 examples/calc++/.gitignore |   12 +++++
 lib/.gitignore             |  105 ++++++++++++++++++++++++++++++++++++++++++++
 m4/.gitignore              |   63 ++++++++++++++++++++++++++
 po/.gitignore              |   22 +++++++++
 runtime-po/.gitignore      |   20 ++++++++
 src/.gitignore             |   13 +++++
 tests/.gitignore           |   16 +++++++
 14 files changed, 344 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 build-aux/.gitignore
 create mode 100644 data/.gitignore
 create mode 100644 doc/.gitignore
 create mode 100644 etc/.gitignore
 create mode 100644 examples/.gitignore
 create mode 100644 examples/calc++/.gitignore
 create mode 100644 lib/.gitignore
 create mode 100644 m4/.gitignore
 create mode 100644 po/.gitignore
 create mode 100644 runtime-po/.gitignore
 create mode 100644 src/.gitignore
 create mode 100644 tests/.gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dcc1614
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
+/*.cache
+/*.flc
+/*.patch *.log log patches applied
+/*.prj
+/.version
+/ABOUT-NLS
+/COPYING
+/INSTALL
+/Makefile
+/Makefile.in
+/_*
+/a.exe
+/a.out
+/aclocal.m4
+/b.out
+/bison-*
+/conf[0-9]*
+/confdefs*
+/config.log
+/config.status
+/configure
+/configure.lineno
+/conftest*
+/gnulib
+/javacomp.sh
+/javaexec.sh
+/patches
+/releases
+/stamp-h*
diff --git a/ChangeLog b/ChangeLog
index 35b2249..d450038 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2008-07-14  Joel E. Denny  <address@hidden>
+
+       Add .gitignore everywhere based on .cvsignore.
+       * .gitignore: New.
+       * build-aux/.gitignore: New.
+       * data/.gitignore: New.
+       * doc/.gitignore: New.
+       * etc/.gitignore: New.
+       * examples/.gitignore: New.
+       * examples/calc++/.gitignore: New.
+       * lib/.gitignore: New.
+       * m4/.gitignore: New.
+       * po/.gitignore: New.
+       * runtime-po/.gitignore: New.
+       * src/.gitignore: New.
+       * tests/.gitignore: New.
+
 2008-05-27  Joel E. Denny  <address@hidden>
 
        * NEWS (2.3b+): New section, empty for now.
diff --git a/build-aux/.gitignore b/build-aux/.gitignore
new file mode 100644
index 0000000..f12882c
--- /dev/null
+++ b/build-aux/.gitignore
@@ -0,0 +1,16 @@
+/Makefile
+/Makefile.in
+/compile
+/config.guess
+/config.rpath
+/config.sub
+/depcomp
+/git-version-gen
+/install-sh
+/javacomp.sh.in
+/javaexec.sh.in
+/link-warning.h
+/mdate-sh
+/missing
+/texinfo.tex
+/ylwrap
diff --git a/data/.gitignore b/data/.gitignore
new file mode 100644
index 0000000..9ee6454
--- /dev/null
+++ b/data/.gitignore
@@ -0,0 +1,2 @@
+/Makefile.in
+/Makefile
diff --git a/doc/.gitignore b/doc/.gitignore
new file mode 100644
index 0000000..294a00d
--- /dev/null
+++ b/doc/.gitignore
@@ -0,0 +1,24 @@
+/Makefile
+/bison.aux
+/bison.cp
+/bison.cps
+/bison.dvi
+/bison.fn
+/bison.html
+/bison.ky
+/bison.log
+/bison.pdf
+/bison.pg
+/bison.ps
+/bison.toc
+/bison.tp
+/bison.vr
+/cross-options.texi
+/Makefile.in
+/refcard.dvi
+/refcard.log
+/refcard.ps
+/*.info*
+/stamp-vti
+/version.texi
+/yacc.1
diff --git a/etc/.gitignore b/etc/.gitignore
new file mode 100644
index 0000000..db2e757
--- /dev/null
+++ b/etc/.gitignore
@@ -0,0 +1,3 @@
+/Makefile
+/Makefile.in
+/bench.pl
diff --git a/examples/.gitignore b/examples/.gitignore
new file mode 100644
index 0000000..b336cc7
--- /dev/null
+++ b/examples/.gitignore
@@ -0,0 +1,2 @@
+/Makefile
+/Makefile.in
diff --git a/examples/calc++/.gitignore b/examples/calc++/.gitignore
new file mode 100644
index 0000000..c0764ce
--- /dev/null
+++ b/examples/calc++/.gitignore
@@ -0,0 +1,12 @@
+/*.cc
+/*.hh
+/*.ll
+/*.o
+/*.output
+/*.stamp
+/*.tmp
+/*.yy
+/.deps
+/Makefile
+/Makefile.in
+/calc++
diff --git a/lib/.gitignore b/lib/.gitignore
new file mode 100644
index 0000000..05e56a6
--- /dev/null
+++ b/lib/.gitignore
@@ -0,0 +1,105 @@
+/*.a
+/*.o
+/.deps
+/Makefile
+/Makefile.in
+/argmatch.c
+/argmatch.h
+/basename.c
+/c-ctype.c
+/c-ctype.h
+/c-strcase.h
+/c-strcasecmp.c
+/c-strncasecmp.c
+/charset.alias
+/config.charset
+/config.h
+/config.hin
+/configmake.h
+/dirname.c
+/dirname.h
+/dup-safer.c
+/error.c
+/error.h
+/exitfail.c
+/exitfail.h
+/fd-safer.c
+/fopen-safer.c
+/getopt.c
+/getopt.h
+/getopt.in.h
+/getopt1.c
+/getopt_.h
+/getopt_int.h
+/gettext.h
+/gnulib.mk
+/hash.c
+/hash.h
+/intprops.h
+/inttypes.h
+/inttypes.in.h
+/inttypes_.h
+/localcharset.c
+/localcharset.h
+/malloc.c
+/mbswidth.c
+/mbswidth.h
+/obstack.c
+/obstack.h
+/pipe-safer.c
+/quote.c
+/quote.h
+/quotearg.c
+/quotearg.h
+/ref-add.sed
+/ref-add.sin
+/ref-del.sed
+/ref-del.sin
+/stamp-h1
+/stdbool.h
+/stdbool.in.h
+/stdbool_.h
+/stdint.h
+/stdint.in.h
+/stdint_.h
+/stdio--.h
+/stdio-safer.h
+/stdlib.h
+/stdlib.in.h
+/stdlib_.h
+/stpcpy.c
+/streq.h
+/strerror.c
+/string.h
+/string.in.h
+/string_.h
+/stripslash.c
+/strndup.c
+/strnlen.c
+/strtol.c
+/strtoul.c
+/strverscmp.c
+/strverscmp.h
+/unistd--.h
+/unistd-safer.h
+/unistd.h
+/unistd.in.h
+/unistd_.h
+/unitypes.h
+/uniwidth
+/uniwidth.h
+/unlocked-io.h
+/verify.h
+/wchar.h
+/wchar.in.h
+/wchar_.h
+/wctype.h
+/wctype.in.h
+/wctype_.h
+/wcwidth.c
+/wcwidth.h
+/xalloc-die.c
+/xalloc.h
+/xmalloc.c
+/xstrndup.c
+/xstrndup.h
diff --git a/m4/.gitignore b/m4/.gitignore
new file mode 100644
index 0000000..d09e90c
--- /dev/null
+++ b/m4/.gitignore
@@ -0,0 +1,63 @@
+/absolute-header.m4
+/argmatch.m4
+/config-h.m4
+/dirname.m4
+/dos.m4
+/double-slash-root.m4
+/error.m4
+/exitfail.m4
+/extensions.m4
+/getopt.m4
+/gettext.m4
+/gnulib-cache.m4
+/gnulib-common.m4
+/gnulib-comp.m4
+/gnulib-tool.m4
+/hash.m4
+/iconv.m4
+/include_next.m4
+/inline.m4
+/intlmacosx.m4
+/inttypes-h.m4
+/inttypes-pri.m4
+/inttypes.m4
+/javacomp.m4
+/javaexec.m4
+/lib-ld.m4
+/lib-link.m4
+/lib-prefix.m4
+/localcharset.m4
+/longlong.m4
+/malloc.m4
+/mbrtowc.m4
+/mbstate_t.m4
+/mbswidth.m4
+/nls.m4
+/po.m4
+/progtest.m4
+/quote.m4
+/quotearg.m4
+/stdbool.m4
+/stdint.m4
+/stdint_h.m4
+/stdio-safer.m4
+/stdlib_h.m4
+/stpcpy.m4
+/strerror.m4
+/string_h.m4
+/strndup.m4
+/strnlen.m4
+/strtol.m4
+/strtoul.m4
+/strverscmp.m4
+/unistd-safer.m4
+/unistd_h.m4
+/unlocked-io.m4
+/warning.m4
+/wchar.m4
+/wchar_t.m4
+/wctype.m4
+/wcwidth.m4
+/wint_t.m4
+/xalloc.m4
+/xstrndup.m4
diff --git a/po/.gitignore b/po/.gitignore
new file mode 100644
index 0000000..79594c0
--- /dev/null
+++ b/po/.gitignore
@@ -0,0 +1,22 @@
+/*.gmo
+/*.po
+/*.po~
+/.reference
+/LINGUAS
+/Makefile
+/Makefile.in
+/Makefile.in.in
+/Makevars
+/Makevars.template
+/POTFILES
+/Rules-quot
+/bison.pot
+/boldquot.sed
+/address@hidden
+/address@hidden
+/insert-header.sed
+/insert-header.sin
+/quot.sed
+/remove-potcdate.sed
+/remove-potcdate.sin
+/stamp-po
diff --git a/runtime-po/.gitignore b/runtime-po/.gitignore
new file mode 100644
index 0000000..1ab77bf
--- /dev/null
+++ b/runtime-po/.gitignore
@@ -0,0 +1,20 @@
+/*.gmo
+/*.po
+/*.po~
+/.reference
+/LINGUAS
+/Makefile
+/Makefile.in
+/Makefile.in.in
+/Makevars
+/POTFILES
+/Rules-quot
+/bison-runtime.pot
+/boldquot.sed
+/address@hidden
+/address@hidden
+/insert-header.sin
+/quot.sed
+/remove-potcdate.sed
+/remove-potcdate.sin
+/stamp-po
diff --git a/src/.gitignore b/src/.gitignore
new file mode 100644
index 0000000..086efc9
--- /dev/null
+++ b/src/.gitignore
@@ -0,0 +1,13 @@
+/*.flc
+/*.log
+/*.o
+/*.output
+/.deps
+/Makefile
+/Makefile.in
+/bison
+/revision.c
+/scan-code.c
+/scan-gram.c
+/scan-skel.c
+/yacc
diff --git a/tests/.gitignore b/tests/.gitignore
new file mode 100644
index 0000000..0d5d32c
--- /dev/null
+++ b/tests/.gitignore
@@ -0,0 +1,16 @@
+/*.dot
+/*.output
+/atconfig
+/atlocal
+/autom4te.cache
+/bison
+/calc
+/calc.[chy]
+/calc.tab.*
+/Makefile
+/Makefile.in
+/Makefile.in
+/package.m4
+/testsuite
+/testsuite.dir
+/testsuite.log
-- 
1.5.4.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]