From 895b300b6c6225b3d61708a7f64e3dd61a5bd4ea Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 8 Dec 2023 16:06:52 +0000 Subject: [PATCH 1/2] Update gitignore Add all the .in files handled in the Makefile, drop never present binary objects and adjust the to look at dist folder in the top directory. Bits like temporary editor files - *~ *.swp or others - should be handled by the end-user. There're dozen of editors and naming schemes out there and adding all the variations to every project does not scale. See `man gitignore` how to set local excludes. Signed-off-by: Emil Velikov --- .gitignore | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index abf02c5f..cfa886b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ -dist/* -*.o +/dist dkms dkms.8 +dkms_autoinstaller +dkms.service +kernel_install.d_dkms +kernel_postinst.d_dkms From a2d235e07ac4591d70f084575acc485dedbac0d6 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 8 Dec 2023 16:17:42 +0000 Subject: [PATCH 2/2] Add editorconfig file Trivial config file, which is supported by more or less every editor out there - either natively or via a plugin. Should make indentation glitches less common. Signed-off-by: Emil Velikov --- .editorconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..065f6735 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# To use this config with your editor, follow the instructions at: +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +insert_final_newline = true +indent_style = space +indent_size = 4 + +[Makefile] +indent_style = tab