Skip to contentSkip to conversation

gitignore: Create .gitignore file for tools/

RFC PATCH In review Elliott Mitchell 1 participant 1 message Sep 9, 2020

lore
Share & tools
lore
#0 lore raw

RFC PATCH 10/11 gitignore: Create .gitignore file for tools/

The portion of .gitignore associated with tools/ is rather large, create a new directory-specific .gitignore file for tools/.

git's ignore format include shell globs, but not the extensions many shells provide. "/include/xen-foreign/*.(c|h|size)" doesn't work.

With a bunch of headers.chk files being present, use "/libs/*/headers.chk" to merge them all into a single line.

Slashes were left at the start of all filenames. Entries without slashes match files in subdirectories, entries with a slash anywhere are a specific path. I feel it is more consistent to have leading slashes on all full paths.

---
This is certainly *not* the final version. Problem is there are a bunch of adjustments which are needed, but I don't want to include in a patch without advice.

Notably, earlier in this series underscore patterns have come up. There are *many* entries in here which specify underscores.

I also note several entries featuring "/build/", while the toplevel .gitignore includes "build-*". This also features "/qemu-xen-build" which is similar.

Should "/hotplug/**/*xencommons" and "/hotplug/**/*xen*domain*" be added?

What of "/fuzz/x86_instruction_emulator/x86[-_]emulate*"?

Should also merge things to "/libxl/[ds]sdt*".

A final step would simply sort these patterns.

---
 .gitignore       | 152 -----------------------------------------------
 tools/.gitignore | 144 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+), 152 deletions(-)
 create mode 100644 tools/.gitignore
.gitignore +0 -152
index 877c2579ab..5c17736c2e 100644
@@ -49,158 +49,6 @@ build-*
 dist/*
 extras/mini-os*
 install/*
-tools/*/build/lib*/*.py
-tools/libs/toolcore/headers.chk
-tools/libs/toollog/headers.chk
-tools/libs/evtchn/headers.chk
-tools/libs/gnttab/headers.chk
-tools/libs/hypfs/headers.chk
-tools/libs/call/headers.chk
-tools/libs/foreignmemory/headers.chk
-tools/libs/devicemodel/headers.chk
-tools/console/xenconsole
-tools/console/xenconsoled
-tools/console/client/_paths.h
-tools/console/daemon/_paths.h
-tools/debugger/gdb/gdb-6.2.1-linux-i386-xen/*
-tools/debugger/gdb/gdb-6.2.1/*
-tools/debugger/gdbsx/gdbsx
-tools/debugger/xenitp/xenitp
-tools/flask/utils/flask-getenforce
-tools/flask/utils/flask-get-bool
-tools/flask/utils/flask-loadpolicy
-tools/flask/utils/flask-setenforce
-tools/flask/utils/flask-set-bool
-tools/flask/utils/flask-label-pci
-tools/fuzz/libelf/afl-libelf-fuzzer
-tools/fuzz/x86_instruction_emulator/asm
-tools/fuzz/x86_instruction_emulator/afl-harness
-tools/fuzz/x86_instruction_emulator/afl-harness-cov
-tools/fuzz/x86_instruction_emulator/wrappers.c
-tools/fuzz/x86_instruction_emulator/x86_emulate
-tools/fuzz/x86_instruction_emulator/x86-emulate.[ch]
-tools/helpers/_paths.h
-tools/helpers/init-xenstore-domain
-tools/helpers/xen-init-dom0
-tools/hotplug/common/hotplugpath.sh
-tools/hotplug/FreeBSD/rc.d/xencommons
-tools/hotplug/FreeBSD/rc.d/xendriverdomain
-tools/hotplug/Linux/init.d/sysconfig.xencommons
-tools/hotplug/Linux/init.d/sysconfig.xendomains
-tools/hotplug/Linux/init.d/xen-watchdog
-tools/hotplug/Linux/init.d/xencommons
-tools/hotplug/Linux/init.d/xendomains
-tools/hotplug/Linux/init.d/xendriverdomain
-tools/hotplug/Linux/launch-xenstore
-tools/hotplug/Linux/systemd/*.conf
-tools/hotplug/Linux/systemd/*.mount
-tools/hotplug/Linux/systemd/*.socket
-tools/hotplug/Linux/systemd/*.service
-tools/hotplug/Linux/vif-setup
-tools/hotplug/Linux/xen-backend.rules
-tools/hotplug/Linux/xen-hotplug-common.sh
-tools/hotplug/Linux/xendomains
-tools/hotplug/NetBSD/rc.d/xencommons
-tools/hotplug/NetBSD/rc.d/xendriverdomain
-tools/include/acpi
-tools/include/xen/*
-tools/include/xen-xsm/*
-tools/include/xen-foreign/*.(c|h|size)
-tools/include/xen-foreign/checker
-tools/libxl/_libxl.api-for-check
-tools/libxl/*.api-ok
-tools/libxl/dsdt*
-tools/libxl/libxlu_cfg_y.output
-tools/libxl/mk_dsdt
-tools/libxl/ssdt*
-tools/libxl/testenum
-tools/libxl/testenum.c
-tools/libxl/tmp.*
-tools/pkg-config/*
-tools/qemu-xen-build
-tools/xentrace/xenalyze
-tools/pygrub/build/*
-tools/python/build/*
-tools/security/secpol_tool
-tools/security/xen/*
-tools/security/xensec_tool
-tools/tests/depriv/depriv-fd-checker
-tools/tests/x86_emulator/32/x86_emulate
-tools/tests/x86_emulator/3dnow*.[ch]
-tools/tests/x86_emulator/asm
-tools/tests/x86_emulator/avx*.[ch]
-tools/tests/x86_emulator/blowfish.h
-tools/tests/x86_emulator/fma*.[ch]
-tools/tests/x86_emulator/*sse*.[ch]
-tools/tests/x86_emulator/test_x86_emulator
-tools/tests/x86_emulator/x86_emulate
-tools/tests/x86_emulator/xop*.[ch]
-tools/tests/xen-access/xen-access
-tools/tests/xenstore/xs-test
-tools/tests/regression/installed/*
-tools/tests/regression/build/*
-tools/tests/regression/downloads/*
-tools/tests/mem-sharing/memshrtool
-tools/tests/mce-test/tools/xen-mceinj
-tools/tests/vpci/list.h
-tools/tests/vpci/vpci.[hc]
-tools/tests/vpci/test_vpci
-tools/xcutils/lsevtchn
-tools/xcutils/readnotes
-tools/xenbackendd/_paths.h
-tools/xenbackendd/xenbackendd
-tools/xenmon/xentrace_setmask
-tools/xenmon/xenbaked
-tools/xenpaging/xenpaging
-tools/xenpmd/xenpmd
-tools/xenstat/libxenstat/src/_paths.h
-tools/xenstat/xentop/xentop
-tools/xenstore/xenstore
-tools/xenstore/xenstore-chmod
-tools/xenstore/xenstore-exists
-tools/xenstore/xenstore-list
-tools/xenstore/xenstore-read
-tools/xenstore/xenstore-rm
-tools/xenstore/xenstore-write
-tools/xenstore/xenstore-control
-tools/xenstore/xenstore-ls
-tools/xenstore/xenstored
-tools/xenstore/xenstored_test
-tools/xenstore/xs_tdb_dump
-tools/xentrace/xentrace_setsize
-tools/xentrace/tbctl
-tools/xentrace/xenctx
-tools/xentrace/xentrace
-tools/flask/policy/policy.conf
-tools/flask/policy/xenpolicy-*
 LibVNCServer*
 
-tools/qemu-xen-dir-remote
-tools/qemu-xen-dir
-
-tools/qemu-xen-traditional-dir-remote
-tools/qemu-xen-traditional-dir
-
-tools/include/xen-foreign/checker.c
-tools/include/xen-foreign/x86_32.h
-tools/include/xen-foreign/x86_64.h
-tools/include/xen-foreign/arm32.h
-tools/include/xen-foreign/arm64.h
-
 .git
-tools/libs/toolcore/include/_*.h
-tools/libxc/_*.[ch]
-tools/libxl/_*.[ch]
-tools/libxl/testidl
-tools/libxl/testidl.c
-tools/libxl/libxl-save-helper
-tools/libxl/test_timedereg
-tools/libxl/test_fdderegrace
-tools/libvchan/vchan-node[12]
-tools/libvchan/vchan-socket-proxy
-tools/debugger/kdd/kdd
-tools/python/xen/lowlevel/xl/_pyxl_types.c
-tools/python/xen/lowlevel/xl/_pyxl_types.h
-tools/xenstore/xenstore-watch
-tools/xl/_paths.h
-tools/xl/xl
tools/.gitignore new file +144 -0

144 lines not on this page · raw message

Signature · 5 lines
-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         [email protected]  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445