← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix for .gitconfig to enable .bzrignore for git and added explanation for its use.

 

I am using Git in my KiCad development and found that I had problems with ignoring generated files.

After some stuffing around I found it was supposed to be handled through configuring git to use the .bzringore file through a .gitconfig file.

However, this was not working correctly with the = sign missing in the config file that I fixed.

Also, I took the opportunity to add a bit of explantion to the .gitconfig file as to what its intention is and how to enable it correctly for the local repository.

Regards,

Marco


diff --git a/.gitconfig b/.gitconfig
index 079dcc9..fa66653 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -1,2 +1,13 @@
+# When using the KiCad repository via Git, this .gitconfig
+# configures Git to use the .bzrignore so there is not need for
+# a separate .gitignore file.
+#
+# However, this .gitconfig file needs to be enable explicitly in your
+# git configuration. For example in the local .git/config file
+# add the following lines:
+#
+# [include]
+#    path = ../.gitconfig
+#
 [core]
-    excludesfile .bzrignore
+    excludesfile = .bzrignore



Follow ups