aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorInochi Amaoto <inochiama@outlook.com>2023-08-01 19:41:19 +0800
committerAnup Patel <anup@brainfault.org>2023-08-06 10:07:57 +0530
commitf536e0b02e7e29abc7e6d845939a8c9fb00ab7e1 (patch)
tree1046d62bdd9c90160b3bfa750df0889a43a914e3 /.gitignore
parentc2e602707dc0f915e96b8726d63d569cbb6724b4 (diff)
downloadopensbi-f536e0b02e7e29abc7e6d845939a8c9fb00ab7e1.zip
opensbi-f536e0b02e7e29abc7e6d845939a8c9fb00ab7e1.tar.gz
opensbi-f536e0b02e7e29abc7e6d845939a8c9fb00ab7e1.tar.bz2
gitignore: allow gitignore to ignore most dot file
Nowadays, most of the editor use files or directories begin with dot to store some settings. So let git ignore these files and directories to reduce potential mistakes. Add dot match to ignore any editor file and there are two exceptions: - .gitignore - .clang-format Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore8
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c11afd3..fbba52e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,10 @@
+# ignore anything begin with dot
+.*
+
+# exceptions we need even begin with dot
+!.clang-format
+!.gitignore
+
# Object files
*.o
*.a
@@ -10,4 +17,3 @@ install/
# Development friendly files
tags
cscope*
-*.swp