tools: add two local .gitignore files
v2 cover tools: add two local .gitignore files
After a new build on my system (OpenSUSE Leap 15.5) "git status" will print out:
Untracked files:
(use "git add <file>..." to include in what will be committed)
tools/pygrub/pygrub.egg-info/ tools/python/xen.egg-info/
This small patch series fixes that by adding the related entries to local .gitignore files, while moving the existing global entries for those directories to them.
Changes in V2:
- use "/dir/" as matching pattern for directories
Juergen Gross (2):
tools/pygrub: add .gitignore file
tools/python: add .gitignore file
.gitignore | 4 ---- tools/pygrub/.gitignore | 2 ++ tools/python/.gitignore | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 tools/pygrub/.gitignore create mode 100644 tools/python/.gitignore
Signature · 1 line
2.35.3
PATCH v2 1/2 tools/pygrub: add .gitignore file
Add a local .gitignore file for tools/pygrub.
As at least on some systems (e.g. OpenSUSE Leap 15.5) the build will produce a tools/pygrub/pygrub.egg-info directory, add it to the new .gitignore file, too.
Use "/dir/" as pattern for ignoring a directory and its contents, as the "/dir/*" pattern won't ignore the directory itself (git just doesn't complain when seeing a directory without any not ignored file in it).
--- .gitignore | 1 - tools/pygrub/.gitignore | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tools/pygrub/.gitignore
.gitignore +0 -1
@@ -213,7 +213,6 @@ tools/misc/xencov tools/pkg-config/* tools/qemu-xen-build tools/xentrace/xenalyze -tools/pygrub/build/* tools/python/build/* tools/tests/depriv/depriv-fd-checker tools/tests/x86_emulator/*.bin
tools/pygrub/.gitignore new file +2 -0
@@ -0,0 +1,2 @@ +/build/ +/pygrub.egg-info/
Signature · 1 line
2.35.3
PATCH v2 2/2 tools/python: add .gitignore file
In reply to Juergen GrossAdd a local .gitignore file for tools/python.
As at least on some systems (e.g. OpenSUSE Leap 15.5) the build will produce a tools/python/xen.egg-info directory, add it to the new .gitignore file, too.
Use "/dir/" as pattern for ignoring a directory and its contents, as the "/dir/*" pattern won't ignore the directory itself (git just doesn't complain when seeing a directory without any not ignored file in it).
--- .gitignore | 3 --- tools/python/.gitignore | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 tools/python/.gitignore
.gitignore +0 -3
@@ -213,7 +213,6 @@ tools/misc/xencov tools/pkg-config/* tools/qemu-xen-build tools/xentrace/xenalyze -tools/python/build/* tools/tests/depriv/depriv-fd-checker tools/tests/x86_emulator/*.bin tools/tests/x86_emulator/*.tmp
@@ -370,8 +369,6 @@ tools/ocaml/test/raise_exception tools/debugger/kdd/kdd tools/firmware/etherboot/ipxe.tar.gz tools/firmware/etherboot/ipxe/ -tools/python/xen/lowlevel/xl/_pyxl_types.c -tools/python/xen/lowlevel/xl/_pyxl_types.h tools/xl/xl docs/txt/misc/*.txt
tools/python/.gitignore new file +3 -0
@@ -0,0 +1,3 @@ +/build/ +/xen.egg-info/ +/xen/lowlevel/xl/_pyxl_types.[ch]
Signature · 1 line
2.35.3
Quoted 12 lines · Juergen Gross
After a new build on my system (OpenSUSE Leap 15.5) "git status" will print out:
Untracked files:
(use "git add <file>..." to include in what will be committed)
tools/pygrub/pygrub.egg-info/tools/python/xen.egg-info/This small patch series fixes that by adding the related entries to local .gitignore files, while moving the existing global entries for those directories to them.
Quoted 6 lines
Changes in V2:
- use "/dir/" as matching pattern for directoriesJuergen Gross (2):
tools/pygrub: add .gitignore file
tools/python: add .gitignore file