This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add more files to .gitignore


Hi,

In data martedì 30 giugno 2015 08:46:27, Pino Toscano ha scritto:
> while working on the previous patches, I noticed a number of generated
> files are not part of .gitignore, so git shows them in the status
> output.
> 
> Attached there is a patch for it to ignore most of them.

Thanks Mark and Josh for the feedback provided!

Attached there is a new version of the patch, which also anchors some of 
the existing filenames to their locations.

Thanks,
-- 
Pino Toscano
>From 30bb65002358b212909f61eaa832fddf68e1a06e Mon Sep 17 00:00:00 2001
From: Pino Toscano <toscano.pino@tiscali.it>
Date: Sat, 11 Jul 2015 09:55:40 +0200
Subject: [PATCH] Fix/improve .gitignore

Fill the .gitignore with more generated files, such as:
- test executables
- results of the automake testing framework (*.log and *.trs)
- sources generated by flex and bison
- generated *.mnemonics files in libcpu
- the helper libcpu/i386_gendis tool
- *.so.1 symlinks

Also, anchor existing filenames to their location when
builddir==srcdir.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
---
 .gitignore | 141 +++++++++++++++++++++++++++++++++++++++++++++++++------------
 ChangeLog  |   5 +++
 2 files changed, 120 insertions(+), 26 deletions(-)

diff --git a/.gitignore b/.gitignore
index 8e33bb9..dfd0c4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,43 +1,132 @@
 #*
 *#
 *.a
-*.gmo
 *.o
 *.orig
 *.os
 *.patch
-*.pot
 *.rej
 *.so
+*.so.1
 */Makefile.in
 *~
 .#*
 .deps
 .glimpse_*
 =*
-INSTALL
+/INSTALL
 Makefile
 Makefile.in
-aclocal.m4
-autom4te.*
-backends/*.map
-config.h
-config.h.in
-config.log
-config.status
-config/ar-lib
-config/compile
-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
+/aclocal.m4
+/autom4te.*
+/backends/*.map
+/config.h
+/config.h.in
+/config.log
+/config.status
+/config/ar-lib
+/config/compile
+/config/config.guess
+/config/config.sub
+/config/depcomp
+/config/install-sh
+/config/missing
+/config/test-driver
+/config/ylwrap
+/configure
+/elfutils.spec
+/libcpu/*_dis.h
+/libcpu/*.mnemonics
+/libcpu/i386_gendis
+/libcpu/i386_lex.c
+/libcpu/i386_parse.c
+/libcpu/i386_parse.h
+/libdw/known-dwarf.h
+/po/*.gmo
+/po/*.pot
+/po/en@boldquot.po
+/po/en@quot.po
+/src/ldlex.c
+/src/ldscript.c
+/src/ldscript.h
+/stamp-h1
+/tests/*.log
+/tests/*.trs
+/tests/addrcfi
+/tests/addrscopes
+/tests/aggregate_size
+/tests/alldts
+/tests/allfcts
+/tests/allregs
+/tests/arextract
+/tests/arls
+/tests/arsymtest
+/tests/asm-tst1
+/tests/asm-tst2
+/tests/asm-tst3
+/tests/asm-tst4
+/tests/asm-tst5
+/tests/asm-tst6
+/tests/asm-tst7
+/tests/asm-tst8
+/tests/asm-tst9
+/tests/backtrace
+/tests/backtrace-child
+/tests/backtrace-data
+/tests/backtrace-dwarf
+/tests/buildid
+/tests/debugaltlink
+/tests/debuglink
+/tests/deleted
+/tests/dwarf-getmacros
+/tests/dwarf-getstring
+/tests/dwarf-ranges
+/tests/dwfl-addr-sect
+/tests/dwfl-bug-addr-overflow
+/tests/dwfl-bug-fd-leak
+/tests/dwfl-bug-getmodules
+/tests/dwfl-bug-report
+/tests/dwfl-report-elf-align
+/tests/dwfllines
+/tests/dwflmodtest
+/tests/dwflsyms
+/tests/early-offscn
+/tests/ecp
+/tests/elfstrtab
+/tests/find-prologues
+/tests/funcretval
+/tests/funcscopes
+/tests/get-aranges
+/tests/get-files
+/tests/get-lines
+/tests/get-pubnames
+/tests/getsrc_die
+/tests/hash
+/tests/line2addr
+/tests/low_high_pc
+/tests/md5-sha1-test
+/tests/msg_tst
+/tests/newdata
+/tests/newfile
+/tests/newscn
+/tests/rdwrmmap
+/tests/rerequest_tag
+/tests/saridx
+/tests/scnnames
+/tests/sectiondump
+/tests/show-abbrev
+/tests/show-die-info
+/tests/showptable
+/tests/strptr
+/tests/test-elf_cntl_gelf_getshdr
+/tests/test-flag-nobits
+/tests/test-nlist
+/tests/typeiter
+/tests/typeiter2
+/tests/update1
+/tests/update2
+/tests/update3
+/tests/update4
+/tests/varlocs
+/tests/vdsosyms
+/version.h
diff --git a/ChangeLog b/ChangeLog
index a17f522..afa5905 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-11  Pino Toscano  <toscano.pino@tiscali.it>
+
+	* .gitignore: Add more generated files, and anchor some of the
+	existing ones.
+
 2015-06-19  Mark Wielaard  <mjw@redhat.com>
 
 	* configure.ac: Set version to 0.163.
-- 
2.1.4

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]