[RFC] git: consolidate .gitignore files
Checks
Commit Message
Lets have only one .gitignore at top level.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
.gitignore | 6 ++++++
dts/.gitignore | 4 ----
kernel/linux/uapi/.gitignore | 4 ----
3 files changed, 6 insertions(+), 8 deletions(-)
delete mode 100644 dts/.gitignore
delete mode 100644 kernel/linux/uapi/.gitignore
Comments
10/02/2025 18:20, Stephen Hemminger:
> +# ignore Linux UAPI kernel headers
> +kernel/linux/uapi/version
> +kernel/linux/uapi/**/*.h
The original .gitignore had some "!" for an opposite logic.
I think we can just completely drop this one, it looks unneeded.
On Mon, Feb 10, 2025 at 12:21 PM Stephen Hemminger <
stephen@networkplumber.org> wrote:
>
> diff --git a/.gitignore b/.gitignore
> index 903fe9bc64..a1a6843494 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -43,6 +43,8 @@ TAGS
>
> # DTS results
> dts/output
> +dts/nodes.yaml
> +dts/test_rund.yaml
>
test_rund -> test_runs
10/02/2025 18:20, Stephen Hemminger:
> Lets have only one .gitignore at top level.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Applied with uAPI rules dropped and these explanations added:
"
Some generated DTS files must be ignored.
The Linux uAPI files should not be ignored.
"
https://git.dpdk.org/next/dpdk-next-dts/commit/?id=564f4abb42df0cdf7da8c53933705bc205642005
This commit on next-dts changes the name of this default config file from
test_runs.yaml to test_run.yaml. However, it is not pulled to main yet.
I can send a patch equivalent to Stephen's which changes test_rund.yml to
test_run.yaml. But, should it be applied to next-dts instead of main, so
that it is "on top of" commit 564f4abb42df0cdf7da8c53933705bc205642005
which necessitates it?
14/03/2025 16:18, Patrick Robb:
> https://git.dpdk.org/next/dpdk-next-dts/commit/?id=564f4abb42df0cdf7da8c53933705bc205642005
>
> This commit on next-dts changes the name of this default config file from
> test_runs.yaml to test_run.yaml. However, it is not pulled to main yet.
>
> I can send a patch equivalent to Stephen's which changes test_rund.yml to
> test_run.yaml. But, should it be applied to next-dts instead of main, so
> that it is "on top of" commit 564f4abb42df0cdf7da8c53933705bc205642005
> which necessitates it?
Please can you rebase next-dts on top of main?
It will force you to make the change in the root .gitconfig
On Fri, Mar 14, 2025 at 11:28 AM Thomas Monjalon <thomas@monjalon.net>
wrote:
>
> Please can you rebase next-dts on top of main?
> It will force you to make the change in the root .gitconfig
>
Thanks for the explanation this should be all set - I have rebased next-dts
and here is the updated commit:
https://git.dpdk.org/next/dpdk-next-dts/commit/?id=3528d203499dc4011ced10a314e06f2ace0a03f7
Paul I have a local backup of the old for-main if we need for any reason,
but it seems like a git edit on the commit above during the interactive
rebase is the correct way to fix this.
@@ -43,6 +43,8 @@ TAGS
# DTS results
dts/output
+dts/nodes.yaml
+dts/test_rund.yaml
# ignore default build directory, and directories from test-meson-builds.sh
build
@@ -50,3 +52,7 @@ build-*
# ignore other build directory patterns
*-gcc*
*-clang*
+
+# ignore Linux UAPI kernel headers
+kernel/linux/uapi/version
+kernel/linux/uapi/**/*.h
deleted file mode 100644
@@ -1,4 +0,0 @@
-# default configuration files for DTS
-nodes.yaml
-test_runs.yaml
-
deleted file mode 100644
@@ -1,4 +0,0 @@
-**
-!**/
-!**/*.h
-!version