Skip to contentSkip to conversation

Tidy up .gitignore

PATCH In review Andrew Cooper 3 participants 6 messages Sep 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Tidy up .gitignore

Drop unused or stale lines.

* While it's necessary to have .git and .hg in each others ignore files if using multiple SCMs (as we did for a while), they should not be in their own.

* The ignore for LibVNCServer* was added by commit a090ca495e7f ("VNC pasword authentication support for the paravirt framebuffer server.") (2006) but without justification or any obvious reason.

* The ignore for tools/misc/lowmemd was added in commit c812282081bb ("Low mem virq incremental adjustments") (2012), but xen-lowmemd (from the same author) already existed and was ignored properly.

* tools/libs/guest/xc_* were added in commit af6c78d9dc68 ("tools: move libxenctrl below tools/libs") for bisectibility, but should have been dropped in the following change, commit e3dd624e487c ("tools/libxc: move libxenguest to tools/libs/guest").

* tools/debugger/xenitp/ was dropped in commit e567964a54b8 ("tools: drop ia64 support") (2012).

* tools/debugger/gdb/ was dropped in commit baa1aae9cfdd ("tools/debugger/gdb: Remove gdb") (2010).

* tools/misc/cpuperf/ was dropped in commit ae95fdf65a72 ("[TOOLS] Remove the 'cpuperf' misc tool.") (2006).

* tools/misc/xc_shadow was dropped in commit 7133144e3abf ("Remove xc_shadow tool") (2007).

* tools/misc/xen_cpuperf was dropped in commit 60eba9b0d265 ("Delete some unused tools") (2004).

* tools/misc/xen-tmem-list-parse was dropped in commit c588c002cc19 ("tools:
remove tmem code and commands") (2018).

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Juergen Gross <[email protected]>

I'm sure there's more to clean up, but I've already been playing archeology too long on this.

---
 .gitignore | 18 ------------------
 1 file changed, 18 deletions(-)
.gitignore +0 -18
index 7b7f5e7a4ad3..84a01e8afe6a 100644
@@ -1,4 +1,3 @@
-.hg
 .*.cmd
 .*.d
 .*.d2
@@ -62,11 +61,6 @@ tools/config.cache
 config/Tools.mk
 config/Stubdom.mk
 config/Docs.mk
-tools/libs/guest/xc_bitops.h
-tools/libs/guest/xc_core.h
-tools/libs/guest/xc_core_arm.h
-tools/libs/guest/xc_core_x86.h
-tools/libs/guest/xc_private.h
 tools/libs/light/_*.[ch]
 tools/libs/light/*.pyc
 tools/libs/light/_libxl.api-for-check
@@ -84,11 +78,7 @@ tools/libs/store/list.h
 tools/libs/store/utils.h
 tools/libs/store/xs_lib.c
 tools/libs/util/libxlu_cfg_y.output
-tools/debugger/gdb/gdb-6.2.1-linux-i386-xen/*
-tools/debugger/gdb/gdb-6.2.1/*
-tools/debugger/gdb/gdb-6.2.1.tar.bz2
 tools/debugger/gdbsx/gdbsx
-tools/debugger/xenitp/xenitp
 tools/firmware/*/biossums
 tools/firmware/*.bin
 tools/firmware/*.sym
@@ -147,20 +137,14 @@ tools/include/_libxl*.h
 tools/include/xen-xsm/*
 tools/include/xen-foreign/*.(c|h|size)
 tools/include/xen-foreign/checker
-tools/misc/cpuperf/cpuperf-perfcntr
-tools/misc/cpuperf/cpuperf-xen
-tools/misc/xc_shadow
-tools/misc/xen_cpuperf
 tools/misc/xen-cpuid
 tools/misc/xen-detect
 tools/misc/xen-diag
-tools/misc/xen-tmem-list-parse
 tools/misc/xen-livepatch
 tools/misc/xenperf
 tools/misc/xenpm
 tools/misc/xen-hvmctx
 tools/misc/xenlockprof
-tools/misc/lowmemd
 tools/misc/xencov
 tools/pkg-config/*
 tools/qemu-xen-build
@@ -249,7 +233,6 @@ xen/suppression-list.txt
 xen/xen-syms
 xen/xen-syms.map
 xen/xen.*
-LibVNCServer*
 
 tools/qemu-xen-dir-remote
 tools/qemu-xen-dir
@@ -270,7 +253,6 @@ tools/include/xen-foreign/x86_64.h
 tools/include/xen-foreign/arm32.h
 tools/include/xen-foreign/arm64.h
 
-.git
 tools/misc/xen-hptool
 tools/misc/xen-mfndump
 tools/firmware/etherboot/eb-roms.h

base-commit: 437f07b2b52b32929c74c2e19a52437ce7e5b88f

Signature · 1 line
2.39.5
#1 lore raw

PATCH 2/2 tools/misc: Move ignores into local .gitignore

... instead of having them split across multiple.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Juergen Gross <[email protected]>

---
 .gitignore            | 15 ---------------
 tools/misc/.gitignore | 15 +++++++++++++++
 2 files changed, 15 insertions(+), 15 deletions(-)
.gitignore +0 -15
index 84a01e8afe6a..d83427aba8cb 100644
@@ -137,15 +137,6 @@ tools/include/_libxl*.h
 tools/include/xen-xsm/*
 tools/include/xen-foreign/*.(c|h|size)
 tools/include/xen-foreign/checker
-tools/misc/xen-cpuid
-tools/misc/xen-detect
-tools/misc/xen-diag
-tools/misc/xen-livepatch
-tools/misc/xenperf
-tools/misc/xenpm
-tools/misc/xen-hvmctx
-tools/misc/xenlockprof
-tools/misc/xencov
 tools/pkg-config/*
 tools/qemu-xen-build
 tools/xentrace/xenalyze
@@ -253,14 +244,8 @@ tools/include/xen-foreign/x86_64.h
 tools/include/xen-foreign/arm32.h
 tools/include/xen-foreign/arm64.h
 
-tools/misc/xen-hptool
-tools/misc/xen-mfndump
 tools/firmware/etherboot/eb-roms.h
 tools/firmware/etherboot/gpxe-git-snapshot.tar.gz
-tools/misc/xenhypfs
-tools/misc/xenwatchdogd
-tools/misc/xen-hvmcrash
-tools/misc/xen-lowmemd
 tools/vchan/vchan-node[12]
 tools/vchan/vchan-socket-proxy
 tools/debugger/kdd/kdd
tools/misc/.gitignore +15 -0
index 73ce95e6d77e..28af46280fa0 100644
@@ -1,5 +1,20 @@
 xen-access
+xen-cpuid
+xen-detect
+xen-diag
+xen-hptool
+xen-hvmcrash
+xen-hvmctx
+xen-livepatch
+xen-lowmemd
 xen-mceinj
 xen-memshare
+xen-mfndump
 xen-ucode
 xen-vmtrace
+xencov
+xenhypfs
+xenlockprof
+xenperf
+xenpm
+xenwatchdogd
Signature · 1 line
2.39.5
#3 lore raw
In reply to Andrew Cooper
Quoted 5 lines · Andrew Cooper

Drop unused or stale lines.

* While it's necessary to have .git and .hg in each others ignore files if using multiple SCMs (as we did for a while), they should not be in their own.

Despite what you say you remove .hg from .gitignore though?

Jan

#4 lore raw
Quoted 7 lines · Jan Beulich
Quoted 5 lines · Andrew Cooper

Drop unused or stale lines.

* While it's necessary to have .git and .hg in each others ignore files if using multiple SCMs (as we did for a while), they should not be in their own.

Despite what you say you remove .hg from .gitignore though?

Oh, all .hg stuff was dropped in ba5bae659d907.  I can add a sentence to that effect.

~Andrew

Reviewed-by on v1 1/2
#5 lore raw
In reply to Andrew Cooper
Quoted 32 lines · Andrew Cooper

Drop unused or stale lines.

* While it's necessary to have .git and .hg in each others ignore files if using multiple SCMs (as we did for a while), they should not be in their own.

* The ignore for LibVNCServer* was added by commit a090ca495e7f ("VNC pasword authentication support for the paravirt framebuffer server.") (2006) but without justification or any obvious reason.

* The ignore for tools/misc/lowmemd was added in commit c812282081bb ("Low mem virq incremental adjustments") (2012), but xen-lowmemd (from the same author) already existed and was ignored properly.

* tools/libs/guest/xc_* were added in commit af6c78d9dc68 ("tools: move libxenctrl below tools/libs") for bisectibility, but should have been dropped in the following change, commit e3dd624e487c ("tools/libxc: move libxenguest to tools/libs/guest").

* tools/debugger/xenitp/ was dropped in commit e567964a54b8 ("tools: drop

    ia64 support") (2012).

* tools/debugger/gdb/ was dropped in commit

    baa1aae9cfdd ("tools/debugger/gdb: Remove gdb") (2010).

* tools/misc/cpuperf/ was dropped in commit ae95fdf65a72 ("[TOOLS] Remove the

    'cpuperf' misc tool.")  (2006).

* tools/misc/xc_shadow was dropped in commit 7133144e3abf ("Remove xc_shadow

    tool") (2007).

* tools/misc/xen_cpuperf was dropped in commit 60eba9b0d265 ("Delete some

Quoted 8 lines
    unused tools") (2004).

* tools/misc/xen-tmem-list-parse was dropped in commit c588c002cc19 ("tools:
remove tmem code and commands") (2018).

No functional change.

Juergen