Move subdirectory parts of the top level .gitignore into appropriate subdirectories. This would be consistent with ChangeLog files, currently one has to update the top level ChangeLog file when the top level .gitignore file is changed in a way that affects specific subdirectories only.
Signed-off-by: Dmitry V. Levin <l...@altlinux.org> --- .gitignore | 157 +----------------------------------------- ChangeLog | 4 ++ backends/.gitignore | 1 + backends/ChangeLog | 4 ++ config/.gitignore | 13 ++++ config/ChangeLog | 4 ++ debuginfod/.gitignore | 2 + debuginfod/ChangeLog | 4 ++ libcpu/.gitignore | 5 ++ libcpu/ChangeLog | 4 ++ libdw/.gitignore | 1 + libdw/ChangeLog | 4 ++ src/.gitignore | 17 +++++ src/ChangeLog | 4 ++ tests/.gitignore | 112 ++++++++++++++++++++++++++++++ tests/ChangeLog | 4 ++ 16 files changed, 185 insertions(+), 155 deletions(-) create mode 100644 backends/.gitignore create mode 100644 config/.gitignore create mode 100644 debuginfod/.gitignore create mode 100644 libcpu/.gitignore create mode 100644 libdw/.gitignore create mode 100644 src/.gitignore create mode 100644 tests/.gitignore diff --git a/.gitignore b/.gitignore index 595760d4..0055ddae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -#* *# *.a *.o @@ -8,175 +7,23 @@ *.rej *.so *.so.1 -*/Makefile.in *~ .#* .deps .glimpse_* =* -/ABOUT-NLS -/INSTALL Makefile Makefile.in +/ABOUT-NLS +/INSTALL /aclocal.m4 /autom4te.* -/backends/*.map /config.cache /config.h /config.h.in /config.log /config.status -/config/ar-lib -/config/compile -/config/config.guess -/config/config.rpath -/config/config.sub -/config/depcomp -/config/install-sh -/config/libdw.pc -/config/libelf.pc -/config/libdebuginfod.pc -/config/missing -/config/test-driver -/config/ylwrap /configure /elfutils.spec -/libcpu/*_dis.h -/libcpu/*.mnemonics -/libcpu/*_gendis -/libcpu/*_lex.c -/libcpu/*_parse.[ch] -/debuginfod/debuginfod -/debuginfod/debuginfod-find -/libdw/known-dwarf.h -/src/addr2line -/src/ar -/src/elfclassify -/src/elfcmp -/src/elfcompress -/src/elflint -/src/findtextrel -/src/make-debug-archive -/src/nm -/src/objdump -/src/ranlib -/src/readelf -/src/size -/src/stack -/src/strings -/src/strip -/src/unstrip /stamp-h1 -/tests/*.log -/tests/*.trs -/tests/addrcfi -/tests/addrscopes -/tests/addsections -/tests/aggregate_size -/tests/alldts -/tests/all-dwarf-ranges -/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/attr-integrate-skel -/tests/backtrace -/tests/backtrace-child -/tests/backtrace-child-biarch -/tests/backtrace-data -/tests/backtrace-dwarf -/tests/buildid -/tests/debugaltlink -/tests/debuginfod_build_id_find -/tests/debuglink -/tests/deleted -/tests/dwarfcfi -/tests/dwarf_default_lower_bound -/tests/dwarf-die-addr-die -/tests/dwarf-getmacros -/tests/dwarf-getstring -/tests/dwarf-ranges -/tests/dwelf_elf_e_machine_string -/tests/dwelfgnucompressed -/tests/dwfl-addr-sect -/tests/dwfl-bug-addr-overflow -/tests/dwfl-bug-fd-leak -/tests/dwfl-bug-getmodules -/tests/dwfl-bug-report -/tests/dwfllines -/tests/dwflmodtest -/tests/dwfl-proc-attach -/tests/dwfl-report-elf-align -/tests/dwfl-report-segment-contiguous -/tests/dwflsyms -/tests/early-offscn -/tests/ecp -/tests/elfcopy -/tests/elfgetchdr -/tests/elfgetzdata -/tests/elfputzdata -/tests/elfrdwrnop -/tests/elfshphehdr -/tests/elfstrmerge -/tests/elfstrtab -/tests/emptyfile -/tests/fillfile -/tests/find-prologues -/tests/funcretval -/tests/funcscopes -/tests/get-aranges -/tests/get-files -/tests/get-lines -/tests/getphdrnum -/tests/get-pubnames -/tests/getsrc_die -/tests/get-units-invalid -/tests/get-units-split -/tests/hash -/tests/leb128 -/tests/line2addr -/tests/low_high_pc -/tests/msg_tst -/tests/newdata -/tests/newfile -/tests/newscn -/tests/next_cfi -/tests/next-files -/tests/next-lines -/tests/peel_type -/tests/rdwrmmap -/tests/rerequest_tag -/tests/saridx -/tests/scnnames -/tests/sectiondump -/tests/show-abbrev -/tests/show-die-info -/tests/showptable -/tests/strptr -/tests/system-elf-libelf-test -/tests/test-elf_cntl_gelf_getshdr -/tests/test-flag-nobits -/tests/test-nlist -/tests/typeiter -/tests/typeiter2 -/tests/unit-info -/tests/update1 -/tests/update2 -/tests/update3 -/tests/update4 -/tests/varlocs -/tests/vdsosyms -/tests/vendorelf -/tests/xlate_notes -/tests/zstrptr /version.h diff --git a/ChangeLog b/ChangeLog index 072a7853..cfdc5699 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: Move subdirectory patterns to separate .gitignore files. + 2020-12-15 Dmitry V. Levin <l...@altlinux.org> * configure.ac (USE_NLS, AM_PO_SUBDIRS): Remove. diff --git a/backends/.gitignore b/backends/.gitignore new file mode 100644 index 00000000..4c1bf5ad --- /dev/null +++ b/backends/.gitignore @@ -0,0 +1 @@ +/*.map diff --git a/backends/ChangeLog b/backends/ChangeLog index f22cd57f..a821cd3b 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-12 Dmitry V. Levin <l...@altlinux.org> * aarch64_retval.c (aarch64_return_value_location): Fix spelling typo diff --git a/config/.gitignore b/config/.gitignore new file mode 100644 index 00000000..86a4dad2 --- /dev/null +++ b/config/.gitignore @@ -0,0 +1,13 @@ +/ar-lib +/compile +/config.guess +/config.rpath +/config.sub +/depcomp +/install-sh +/libdebuginfod.pc +/libdw.pc +/libelf.pc +/missing +/test-driver +/ylwrap diff --git a/config/ChangeLog b/config/ChangeLog index f0305985..8527be52 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-12 Dmitry V. Levin <l...@altlinux.org> * 10-default-yama-scope.conf: Fix spelling typo in comment. diff --git a/debuginfod/.gitignore b/debuginfod/.gitignore new file mode 100644 index 00000000..382fce63 --- /dev/null +++ b/debuginfod/.gitignore @@ -0,0 +1,2 @@ +/debuginfod +/debuginfod-find diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 379af287..03e773d1 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-12 Dmitry V. Levin <l...@altlinux.org> * debuginfod-client.c (debuginfod_query_server): Fix spelling typos in diff --git a/libcpu/.gitignore b/libcpu/.gitignore new file mode 100644 index 00000000..9390e5b9 --- /dev/null +++ b/libcpu/.gitignore @@ -0,0 +1,5 @@ +/*.mnemonics +/*_dis.h +/*_gendis +/*_lex.c +/*_parse.[ch] diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index af7ea96c..5041dce7 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-16 Érico Nogueira <eric...@disroot.org> * Makefile.am (i386_gendis_LDADD): Add obstack_LIBS. diff --git a/libdw/.gitignore b/libdw/.gitignore new file mode 100644 index 00000000..d5fe053f --- /dev/null +++ b/libdw/.gitignore @@ -0,0 +1 @@ +/known-dwarf.h diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 20fec602..f4245155 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-16 Dmitry V. Levin <l...@altlinux.org> * libdwP.h (_): Remove. diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 00000000..f7252a4a --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,17 @@ +/addr2line +/ar +/elfclassify +/elfcmp +/elfcompress +/elflint +/findtextrel +/make-debug-archive +/nm +/objdump +/ranlib +/readelf +/size +/stack +/strings +/strip +/unstrip diff --git a/src/ChangeLog b/src/ChangeLog index 2e428e0b..2a712071 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-12 Mark Wielaard <m...@klomp.org> * elflint.c (check_sections): Handle SHF_GNU_RETAIN. diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 00000000..a9968335 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,112 @@ +/*.log +/*.trs +/addrcfi +/addrscopes +/addsections +/aggregate_size +/all-dwarf-ranges +/alldts +/allfcts +/allregs +/arextract +/arls +/arsymtest +/asm-tst1 +/asm-tst2 +/asm-tst3 +/asm-tst4 +/asm-tst5 +/asm-tst6 +/asm-tst7 +/asm-tst8 +/asm-tst9 +/attr-integrate-skel +/backtrace +/backtrace-child +/backtrace-child-biarch +/backtrace-data +/backtrace-dwarf +/buildid +/debugaltlink +/debuginfod_build_id_find +/debuglink +/deleted +/dwarf-die-addr-die +/dwarf-getmacros +/dwarf-getstring +/dwarf-ranges +/dwarf_default_lower_bound +/dwarfcfi +/dwelf_elf_e_machine_string +/dwelfgnucompressed +/dwfl-addr-sect +/dwfl-bug-addr-overflow +/dwfl-bug-fd-leak +/dwfl-bug-getmodules +/dwfl-bug-report +/dwfl-proc-attach +/dwfl-report-elf-align +/dwfl-report-segment-contiguous +/dwfllines +/dwflmodtest +/dwflsyms +/early-offscn +/ecp +/elfcopy +/elfgetchdr +/elfgetzdata +/elfputzdata +/elfrdwrnop +/elfshphehdr +/elfstrmerge +/elfstrtab +/emptyfile +/fillfile +/find-prologues +/funcretval +/funcscopes +/get-aranges +/get-files +/get-lines +/get-pubnames +/get-units-invalid +/get-units-split +/getphdrnum +/getsrc_die +/hash +/leb128 +/line2addr +/low_high_pc +/msg_tst +/newdata +/newfile +/newscn +/next-files +/next-lines +/next_cfi +/peel_type +/rdwrmmap +/rerequest_tag +/saridx +/scnnames +/sectiondump +/show-abbrev +/show-die-info +/showptable +/strptr +/system-elf-libelf-test +/test-elf_cntl_gelf_getshdr +/test-flag-nobits +/test-nlist +/typeiter +/typeiter2 +/unit-info +/update1 +/update2 +/update3 +/update4 +/varlocs +/vdsosyms +/vendorelf +/xlate_notes +/zstrptr diff --git a/tests/ChangeLog b/tests/ChangeLog index b9edd249..c3cd5557 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin <l...@altlinux.org> + + * .gitignore: New file. + 2020-12-12 Mark Wielaard <m...@klomp.org> * testfile-retain.o.bz2: New test file. -- ldv